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

Toggle Join/Part | bottom
[00:00:05] *** lw has quit IRC
[00:00:07] <eslaron> the mime, I can make a plunker but it won't work properly my back end sends a auth token. But can show my index html
[00:00:08] *** jumpman has quit IRC
[00:00:12] <themime> biowo: you can't just post to a json file, post sends an html post 'packet' to a server, you need to use a backend service like firebase to store the file, use localstorage to store it in the browser, or a server with php, java, nodejs, etc to accept the data and save to a database or file on the server
[00:00:42] <themime> eslaron: i want to see the controllers
[00:00:43] *** shpoont___ has quit IRC
[00:00:49] *** josh-k has quit IRC
[00:00:53] <eslaron> okay
[00:00:55] *** artisangoose has quit IRC
[00:00:57] *** lw has joined #angularjs
[00:01:14] *** lw has quit IRC
[00:01:18] *** josh-k has joined #angularjs
[00:01:41] *** a3gis has quit IRC
[00:01:49] <themime> firebase to store the data, file was wrong word
[00:01:56] <biowo> ok i will try it. but why it works correctly, when i can use $http.get ? Thanks!
[00:02:04] *** Jdubs has joined #angularjs
[00:02:12] *** lw has joined #angularjs
[00:02:19] <themime> what are you using to edit with? what does your url look like?
[00:02:21] *** lw has quit IRC
[00:02:21] <nicholes> biowo: I'm assuming get is working because you have some server, like node, serving up your static assets.
[00:02:42] *** livingstn has quit IRC
[00:02:49] *** hiptobecubic has quit IRC
[00:02:56] *** lite_ has quit IRC
[00:02:57] <themime> biowo: i don't think he understands that concept, i suspect hes using file:/// or using plunker
[00:03:03] <themime> er that was to nicholes
[00:03:09] *** enigmarm has quit IRC
[00:03:11] *** lw has joined #angularjs
[00:03:17] *** bluejade has quit IRC
[00:03:19] *** lw has quit IRC
[00:03:26] *** Jdubs has quit IRC
[00:03:42] <themime> biowo: nicholes has the answer though, you need logic to save to something but getting a static file is simple and will depend on your setup
[00:03:47] *** MaxV has quit IRC
[00:03:56] *** lw has joined #angularjs
[00:04:26] <eslaron> themime, http://plnkr.co/edit/mcX5jvYFxVFEgCjLIRFa?p=info
[00:04:29] *** jonr22 has quit IRC
[00:04:40] *** fredduvent has joined #angularjs
[00:04:49] <biowo> OK, Thanks themime and nicholes!
[00:05:00] *** MaxV has joined #angularjs
[00:05:04] *** lw has joined #angularjs
[00:05:25] <themime> biowo: where is your json file stored? what are you using to edit your files?
[00:05:39] *** josh-k has quit IRC
[00:05:49] <nicholes> Wild guess-- it's stored at api/books.json
[00:05:49] <biowo> locally
[00:06:22] <themime> are you using file:/// ?
[00:06:42] *** kodierkroete has quit IRC
[00:06:54] <biowo> . |-- api | `-- books.json
[00:07:07] *** MaxV has quit IRC
[00:07:19] *** MaxV has joined #angularjs
[00:07:24] <themime> do you know what web server you are using?
[00:07:35] <biowo> file:///.../testBookLibrary/index.html#/main
[00:07:37] *** MaxV has quit IRC
[00:07:41] <themime> aaah yea youre not using a web server
[00:07:43] <biowo> yes you are right
[00:07:49] *** fredduvent has quit IRC
[00:08:03] <nicholes> That would explain why POST isn't working. :D
[00:08:17] *** jaznow has quit IRC
[00:08:25] *** phuh has quit IRC
[00:08:30] *** dcherman has joined #angularjs
[00:08:31] <biowo> so only GET works, but no POST PUT DELETE
[00:08:32] <themime> so you need to use node+express, apache+php, jetty/tomcat+java, iis+c# (don't do that)
[00:08:41] *** araujo has quit IRC
[00:08:53] <nicholes> apache+mod_wsgi+python!!!
[00:08:56] *** phuh has joined #angularjs
[00:09:07] <themime> biowo: exactly. its getting it locally because of how browsers are but in the real world it would retrieve it from a server - that server would have a script you would post to that would take the data and save it
[00:09:22] <themime> oh yea python! or ruby on rails. there are a lot of choices
[00:09:31] *** saucey has quit IRC
[00:09:36] *** dreambox_ghost has quit IRC
[00:09:38] <nicholes> I guess not just python… but django
[00:09:51] *** mahomaho has joined #angularjs
[00:09:57] <nicholes> But man, that's a whole lot of overhead that you don't need when learning
[00:10:02] *** walden is now known as walden|afk
[00:10:12] *** icfantv has joined #angularjs
[00:10:21] *** annlewis has joined #angularjs
[00:10:28] *** bmac has quit IRC
[00:10:47] <biowo> i heard MEAN, is that also a good choice?
[00:10:47] *** KernelCurry has quit IRC
[00:10:49] <WoffMeow> Hi. How do I inject one factory into another factory? I've got the following setup 'var app = angular.module('myApp', []); app.factory('someFactory', function() { ...}); app.factory('otherFactory', function($q, $http) { .. });'
[00:10:54] <themime> yea depends on your existing JS/web dev experience but my guess is if youre wondering why your post doesn't work youre probably not familar with those other aspects. biowo how did you intend to show your code to others?
[00:11:17] <themime> biowo: i have too, im about to use that too
[00:11:18] <WoffMeow> say I want otherFactory to be able to use someFactory
[00:11:18] *** AtomicCookie has quit IRC
[00:11:25] <icfantv> WoffMeow: just pass it in
[00:11:28] *** KernelCurry has joined #angularjs
[00:11:31] <dhcar> WoffMeow the same way you would with $q and $http
[00:11:57] <themime> WoffMeow: just make sure you add the script to your index page though! i always forget that and debug stupid module errors for 30 minutes
[00:12:17] <icfantv> WoffMeow: the only trick becomes if you use the app.factory('MyFactory', […, function ]) syntax
[00:12:19] *** oste has quit IRC
[00:12:32] *** memento__ has quit IRC
[00:12:58] <themime> the name you use is based on the module - angular.module('OtherService').factory(...) then to inject it .factory('MyFactory',function($q,$http,OtherService) {...}))
[00:13:06] *** the-anconia has joined #angularjs
[00:13:49] *** threesixes has quit IRC
[00:14:59] *** Tomdarkness has joined #angularjs
[00:15:40] *** iqbalkhan has joined #angularjs
[00:15:53] *** rosieres has joined #angularjs
[00:15:53] *** mahomaho has quit IRC
[00:16:05] <lebster> Argument 'MainController' is not a function, got undefined
[00:16:27] <themime> biowo: MEAN keeps it all JS. but if youre already familiar with another backend language like php, java, rails, etc then you can do that too
[00:16:32] <lebster> is this the wrong way to create a controller? https://www.irccloud.com/pastebin/ny9QMFYI
[00:16:33] <biowo> my target is to know how the angular works on CRUD, hope MEAN is easy to use. or is there any better choice?
[00:17:04] <WoffMeow> icfantv: Tried the follwing 'app.factory('otherFactory', function($q, $http, someFactory) { console.log(someFactory) }); ' but someFactory was undefined. By the way, the order of the script tags is: app.js, someFactory.js, otherFactory.js
[00:17:18] <lebster> AngularJS v1.3.1
[00:18:25] *** mahomaho has joined #angularjs
[00:19:13] *** codeman has joined #angularjs
[00:20:15] *** FunnyLookinHat has quit IRC
[00:20:21] *** iqbalkhan has quit IRC
[00:20:26] <nicholes> WoffMeow: Did you name your other factory in someFactory.js "someFactory" ?
[00:20:45] <themime> lebster: plunker?
[00:21:05] *** dreambox has joined #angularjs
[00:21:09] <biowo> a stupid question: why you can send the message like this "<themime> biowo: ..."
[00:21:41] *** sonofdir_ has quit IRC
[00:21:54] *** blomman has quit IRC
[00:21:56] <nicholes> biowo: We include the names of the people to whom we're responding so that they'll be notified by their IRC client.
[00:21:57] *** rho has quit IRC
[00:22:01] *** cpk has quit IRC
[00:22:29] <WoffMeow> nicholes: yep. someFactory.js contains ' app.factory('someFactory', function() { ...}); ' and otherFactory.js contains 'app.factory('otherFactory', function($q, $http, someFactory) { console.log(someFactory) }); '
[00:22:50] *** yts has quit IRC
[00:22:55] *** mven has quit IRC
[00:23:37] *** ccohn has quit IRC
[00:23:44] <biowo> <nicholes> like this? ... sorry, this is my first time here.
[00:24:03] <nicholes> biowo: You don't need the <>s
[00:24:05] <nicholes> But yes
[00:24:11] *** ccohn has joined #angularjs
[00:24:21] <alexw> is it possible to watch a form's $dirty property?
[00:25:08] <eslaron> themime, here are the controllers. I link them in the index html: http://plnkr.co/edit/mcX5jvYFxVFEgCjLIRFa?p=info
[00:25:11] <biowo> thanks nicholes, i'll go back to try MEAN-like service
[00:25:30] <WoffMeow> nicholes: I'm able to access both functions from my controller, which is defined like this app.controller('Controller', ['$scope', 'someFactory','otherFactory', '$rootScope', function ($scope, someFactory, otherFactory, $rootScope) {
[00:25:31] <nicholes> biowo: Like themime already said to you, MEAN will keep it all javascript
[00:25:46] <WoffMeow> both *factories i mean
[00:25:52] *** therealmark has quit IRC
[00:25:58] *** _ritchie_ has quit IRC
[00:26:06] *** pdillinger has quit IRC
[00:26:11] <lebster> themime: plunker wont let me add angular-route lol
[00:26:12] *** therealmark has joined #angularjs
[00:26:35] *** Txandy has quit IRC
[00:26:37] *** mzabriskie has quit IRC
[00:26:47] <nicholes> WoffMeow: *shrug* sorry.
[00:27:04] <nicholes> Maybe someone more experienced will know ;)
[00:27:09] *** thirdknife has joined #angularjs
[00:27:23] *** pingupingu has joined #angularjs
[00:27:35] *** rawc has joined #angularjs
[00:27:37] *** subr0utine has joined #angularjs
[00:27:44] <lebster> themime: http://plnkr.co/edit/b6cmQWU0SOm7ru14ziV0?p=preview
[00:27:53] *** baweaver has quit IRC
[00:28:01] *** doginal has joined #angularjs
[00:28:02] *** vassagus has quit IRC
[00:28:11] *** alinou has joined #angularjs
[00:28:20] *** ccohn has quit IRC
[00:28:30] *** baweaver has joined #angularjs
[00:28:33] *** Aliks has quit IRC
[00:28:46] *** TheAceOfHearts has quit IRC
[00:29:06] *** tilgovi has joined #angularjs
[00:29:31] *** dsdeiz has joined #angularjs
[00:30:36] *** TheAceOfHearts has joined #angularjs
[00:31:59] <themime> lebster: http://plnkr.co/edit/f4gwerPJj0KJafdv6Sth?p=preview
[00:32:28] <jameswork> does an angular frontend require something different when using segment io since it's a single page app?
[00:32:40] <themime> biowo: most clients you can type tab after a few letts, like i can type "bi" then hit tab and your name pops up
[00:32:41] *** drej has joined #angularjs
[00:32:45] *** baweaver has quit IRC
[00:33:23] *** Jdubs has joined #angularjs
[00:33:28] *** alexw has quit IRC
[00:33:57] *** alexw has joined #angularjs
[00:34:14] <lebster> themime: i see what you did there, but what if you want it in another file like http://plnkr.co/edit/b6cmQWU0SOm7ru14ziV0?p=preview
[00:34:24] *** RobinBAwesome has quit IRC
[00:34:25] *** Jdubs has quit IRC
[00:34:45] *** RobinBAwesome has joined #angularjs
[00:35:02] *** jameswork has quit IRC
[00:35:13] <themime> lebster: remove [] it makes a new one instead of getting a reference
[00:35:23] <biowo> :)
[00:35:23] *** Jdubs has joined #angularjs
[00:35:32] <themime> lebster: http://plnkr.co/edit/ANHLmRhVT8KlairtvDZ1?p=preview
[00:35:45] <lebster> ohhhhhh
[00:35:45] *** ayesian has quit IRC
[00:36:02] <lebster> cool thanks
[00:36:23] *** josh-k has joined #angularjs
[00:36:48] <doginal> hey everyone, i am trying to submit a form with a directive heres the code, http://pastebin.com/TCdHFdf8 but i am getting TypeError: undefined is not a function. what is causing it? i have tried changing the $document to $(document) and changing $document.getElementById to $(“#form”) but none of those work. what am i doing wrong?
[00:37:16] *** jbeaudry has quit IRC
[00:37:16] *** cacts|wtf has quit IRC
[00:37:27] *** ayesian has joined #angularjs
[00:37:42] *** subr0utine has quit IRC
[00:38:03] <themime> doginal: element gives you access to said form, you don't need any jquery
[00:38:05] *** dreambox has quit IRC
[00:38:08] *** josh-k has quit IRC
[00:38:19] *** Tomdarkness has quit IRC
[00:38:42] *** josh-k has joined #angularjs
[00:38:46] <themime> doginal: also you can access the scope of the directive as a model. right now it seems silly to even use a directive
[00:39:17] *** nattonerd has quit IRC
[00:39:17] <themime> access the scope of the directive and use it for two way binding, as a model, like what angular is used for
[00:40:34] *** chromato_ has joined #angularjs
[00:40:44] *** Jdubs has quit IRC
[00:40:45] *** whitebook has quit IRC
[00:40:52] *** josh-k has quit IRC
[00:41:28] *** elrabin_ has joined #angularjs
[00:41:40] *** RobinBAwesome has quit IRC
[00:41:57] *** dhcar is now known as dhcar_AFK
[00:42:21] *** RobinBAwesome has joined #angularjs
[00:42:47] *** cakirke has joined #angularjs
[00:42:57] *** kalehv has joined #angularjs
[00:43:23] *** quetzakubica has quit IRC
[00:43:25] *** evilaliv3 has quit IRC
[00:44:08] *** chromatome has quit IRC
[00:44:24] *** elrabin has quit IRC
[00:44:29] <eslaron> :3
[00:44:30] *** subr0utine has joined #angularjs
[00:44:49] *** chromato_ has quit IRC
[00:44:52] *** c00ljs has quit IRC
[00:45:22] *** Jdubs has joined #angularjs
[00:45:25] *** biowo has quit IRC
[00:45:31] *** tomzx is now known as tomzx`afk
[00:45:31] *** TinkerTyper has quit IRC
[00:45:38] *** matthoiland has quit IRC
[00:45:39] *** Jdubs has quit IRC
[00:45:39] *** ArTiSTiX has quit IRC
[00:45:42] *** elrabin_ has quit IRC
[00:46:13] *** matthoiland has joined #angularjs
[00:46:23] *** ozooner_ has quit IRC
[00:46:48] *** Jdubs has joined #angularjs
[00:46:49] *** beckyconning has joined #angularjs
[00:47:03] *** TinkerTyper has joined #angularjs
[00:47:06] *** nattonerd has joined #angularjs
[00:47:14] *** Joe_knock has joined #angularjs
[00:47:14] *** Joe_knock has joined #angularjs
[00:47:28] <alexw> should every state have it's own controller in ui router?
[00:48:03] <lebster> themime: is there some sort of tools i can use to catch errors like that? or its all just experience
[00:48:04] *** danflies has quit IRC
[00:48:20] *** disorder20 has quit IRC
[00:48:30] <lebster> all the doc examples i see set the instance to a var = myApp
[00:48:37] *** rawc has quit IRC
[00:48:38] *** linojon has quit IRC
[00:48:47] <eslaron> themime: pm when you will look into my case :)
[00:50:04] *** akrikos has quit IRC
[00:50:13] <nicholes> eslaron: While you're just waiting, maybe reading over http://scotch.io/tutorials/javascript/angular-routing-using-ui-router would help
[00:50:27] *** baweaver has joined #angularjs
[00:50:27] *** bolloga has quit IRC
[00:50:31] *** hopefoo has joined #angularjs
[00:50:52] *** matthoiland has quit IRC
[00:51:04] *** WoffMeow has quit IRC
[00:51:09] *** ArTiSTiX has joined #angularjs
[00:51:15] <hopefoo> hey
[00:51:23] *** Joe_knock has quit IRC
[00:51:32] <hopefoo> Any AngularJS 2.0 release date?
[00:52:13] <nicholes> Hopefully NEVER *runs off crying*
[00:52:37] *** jmstout has quit IRC
[00:53:18] <alexw> Can anyone help with this? http://plnkr.co/edit/wHXKd08sHLZcaOM3hXW9?p=preview
[00:53:25] <alexw> I'm trying to access the child scopes form
[00:54:12] <alexw> http://plnkr.co/edit/wHXKd08sHLZcaOM3hXW9?p=preview sorry just updated it
[00:54:29] <alexw> How bizzare - I can access the child scope's 'formData' object - but not the signupForm
[00:54:41] *** ccohn has joined #angularjs
[00:55:28] <hopefoo> AlexejK: try using Services
[00:55:55] <alexw> hopefoo was that for me?
[00:56:17] <hopefoo> read the doc
[00:56:29] *** ccohn has quit IRC
[00:56:32] <alexw> I don't understand why the form doesn't get resolved but formData does
[00:56:32] *** ccohn_ has joined #angularjs
[00:56:43] *** dman777_alter has quit IRC
[00:56:57] <hopefoo> $scope has no member named "signupForm"
[00:56:57] *** dcherman has quit IRC
[00:56:58] *** AlSquirrel has quit IRC
[00:57:02] *** michaelSharpe has joined #angularjs
[00:57:07] <alexw> Is form applied asynchronously or something and therefore ui router can't deal with it?
[00:57:09] <hopefoo> but $scope has a member named formData
[00:57:14] <hopefoo> that is all.
[00:57:24] *** Joe_knock has joined #angularjs
[00:57:45] <alexw> but if I put $scope.signupForm = {}; in the controller it still doesn't fix it?
[00:58:06] <hopefoo> why are you expecting "signupForm" to be member of "signupForm"?
[00:58:20] <hopefoo> why are you expecting "signupForm" to be member of "$scope"?
[00:58:22] <hopefoo> sorry
[00:58:31] *** pell0 has joined #angularjs
[00:58:34] <nicholes> hopefoo: Because he's assigning it the "name" property in the form directive
[00:58:36] <alexw> <form name="signupForm"
[00:58:51] <Logicgate> Alex, it'll be part of the controller, not $scope.
[00:58:52] <alexw> If the name attribute is specified, the form controller is published onto the current scope under this name.
[00:58:53] <alexw> https://docs.angularjs.org/api/ng/directive/form
[00:58:56] <Logicgate> controller.<form>
[00:58:59] <hopefoo> well, I don't know about that
[00:59:20] <alexw> The issue is it doesn't get resolved with ui router I think...
[00:59:22] <nicholes> alexw: Do you have to specify the controller for the child views? I don't actually know-- just asking.
[00:59:34] <alexw> yeah - but it complicates things a little
[00:59:47] <hopefoo> then you are right
[00:59:47] <Logicgate> no
[00:59:49] <alexw> by default child views will use the parent controller
[00:59:51] *** kalehv has quit IRC
[00:59:52] <hopefoo> try the initialisation
[00:59:55] <Logicgate> AlexejK, you should do controllerAs
[00:59:57] *** marshall_ has joined #angularjs
[01:00:07] *** hiptobecubic has joined #angularjs
[01:00:09] <alexw> You can see this in action when you click the submit form button
[01:00:10] <Logicgate> and access data via controller.form
[01:00:42] *** ccohn_ has quit IRC
[01:00:51] *** moritzs has joined #angularjs
[01:01:12] <Logicgate> Also alex, you don't mention the controller in your sub states.
[01:01:16] *** AlSquire has joined #angularjs
[01:01:23] <alexw> Logicgate it will inherit it by default?
[01:01:31] *** firelinks has joined #angularjs
[01:01:34] *** shpoont___ has joined #angularjs
[01:01:36] *** RobinBAwesome_ has joined #angularjs
[01:01:53] *** RobinBAwesome has quit IRC
[01:01:53] *** RobinBAwesome_ is now known as RobinBAwesome
[01:02:33] <alexw> Logicgate but formData resolves fine...
[01:02:39] <alexw> so it's got nothing to do with that
[01:03:45] <Logicgate> I hate opening plunker.
[01:03:48] *** lite_ has joined #angularjs
[01:03:48] <Logicgate> They're always so messy.
[01:03:50] <alexw> Me to
[01:03:53] <alexw> too*
[01:03:53] <Logicgate> It triggers all of my OCD at once.
[01:03:59] *** stirlingw has quit IRC
[01:04:18] <Logicgate> As the page loads, my cursor slowly creeps towards the tab exit button
[01:04:26] <alexw> I'll clean it up a little
[01:04:27] *** Fishy has joined #angularjs
[01:04:52] *** caitp has quit IRC
[01:05:18] *** jae has joined #angularjs
[01:05:22] <alexw> Logicgate cleaned up version: http://plnkr.co/edit/wHXKd08sHLZcaOM3hXW9?p=preview
[01:05:26] *** sssilver_ has quit IRC
[01:05:29] *** drej has quit IRC
[01:05:33] *** klaut_ has quit IRC
[01:05:53] <alexw> Maybe I need a service
[01:06:07] *** matisoffn has quit IRC
[01:06:10] *** shpoont___ has quit IRC
[01:06:29] *** cannap has quit IRC
[01:07:43] *** cam_y_ has joined #angularjs
[01:08:25] *** phuh has quit IRC
[01:08:26] *** lite_ has quit IRC
[01:08:27] *** philipd has joined #angularjs
[01:09:02] *** phuh has joined #angularjs
[01:09:05] *** discgo has joined #angularjs
[01:09:24] *** bade has quit IRC
[01:09:59] *** mccarrontr1ck has quit IRC
[01:10:03] *** qstrahl has joined #angularjs
[01:10:36] *** baweaver has quit IRC
[01:10:56] *** cam_y has quit IRC
[01:11:09] *** baweaver has joined #angularjs
[01:11:14] *** michaelSharpe has quit IRC
[01:11:24] *** Aliks has joined #angularjs
[01:12:19] *** cam_y_ has quit IRC
[01:12:50] *** michaelSharpe has joined #angularjs
[01:12:58] *** nicholes has quit IRC
[01:13:19] *** ctanga has joined #angularjs
[01:13:41] *** annlewis has quit IRC
[01:14:06] *** woah has quit IRC
[01:14:09] *** jmstout has joined #angularjs
[01:14:48] *** michaelS_ has joined #angularjs
[01:15:12] *** SoulBlade has joined #angularjs
[01:15:36] <sacho_> maybe you need a service
[01:15:48] *** baweaver has quit IRC
[01:16:08] *** annlewis has joined #angularjs
[01:17:47] *** tkimmel has quit IRC
[01:18:15] *** Fire-Dragon-DoL has quit IRC
[01:18:34] *** michaelSharpe has quit IRC
[01:19:00] *** tkimmel has joined #angularjs
[01:19:04] *** gurke_ has quit IRC
[01:19:14] *** whitenexx has quit IRC
[01:19:45] *** SoulBlade has quit IRC
[01:20:05] *** baweaver has joined #angularjs
[01:20:18] *** jbeaudry has joined #angularjs
[01:20:27] *** cacts has joined #angularjs
[01:20:49] *** hikumealan_ has quit IRC
[01:21:27] *** tkimmel has quit IRC
[01:21:40] *** michaelSharpe has joined #angularjs
[01:21:54] *** mjs2600 has joined #angularjs
[01:22:34] *** eslaron has quit IRC
[01:22:52] *** enaqx has quit IRC
[01:22:53] *** zwacky has quit IRC
[01:23:44] *** SeeThruHead has quit IRC
[01:23:58] *** michael__ has joined #angularjs
[01:24:32] *** pootpoot has quit IRC
[01:24:38] *** michael__ is now known as Guest13913
[01:24:41] *** TyrfingMjolnir has quit IRC
[01:24:44] *** Zeioth has quit IRC
[01:24:59] *** michaelS_ has quit IRC
[01:25:13] *** michaelS_ has joined #angularjs
[01:25:44] *** michaelSharpe has quit IRC
[01:25:46] *** cigarshark has quit IRC
[01:25:53] *** michaelS_ has quit IRC
[01:26:00] *** linojon has joined #angularjs
[01:26:58] *** Nizumzen has joined #angularjs
[01:27:24] *** elxa has joined #angularjs
[01:28:00] *** the-anconia has quit IRC
[01:28:16] *** philipd has quit IRC
[01:28:20] *** Reskp has quit IRC
[01:28:35] *** woah has joined #angularjs
[01:29:02] *** ayesian has quit IRC
[01:29:07] *** Guest13913 has quit IRC
[01:29:38] *** bbankes_ has quit IRC
[01:31:29] *** poolside has quit IRC
[01:32:58] *** rosieres has quit IRC
[01:33:25] *** dllama has quit IRC
[01:33:37] *** qstrahl has quit IRC
[01:34:11] *** Joe_knock has quit IRC
[01:34:18] *** dhcar_AFK is now known as dhcar
[01:34:30] *** Joe_knock has joined #angularjs
[01:34:38] *** Joe_knock has joined #angularjs
[01:34:43] *** shinnya has quit IRC
[01:34:46] *** tomzx`afk is now known as tomzx
[01:34:57] *** ome has joined #angularjs
[01:35:00] *** Aliks has quit IRC
[01:35:17] *** Aliks has joined #angularjs
[01:36:04] *** optikalmouse has quit IRC
[01:36:09] *** dhcar is now known as dhcar_AFK
[01:36:23] *** annlewis has quit IRC
[01:36:23] *** Rejected has quit IRC
[01:38:32] *** dreambox has joined #angularjs
[01:39:39] *** varx has joined #angularjs
[01:39:56] *** annlewis has joined #angularjs
[01:42:17] *** thirdknife has quit IRC
[01:42:21] *** hikumealan_ has joined #angularjs
[01:42:36] *** NaN has joined #angularjs
[01:42:38] <NaN> hi there
[01:42:40] *** krawek has quit IRC
[01:43:17] *** mclenithan has quit IRC
[01:43:23] *** SeeThruHead has joined #angularjs
[01:43:25] *** dreambox has quit IRC
[01:43:41] <NaN> I had read about the new angularjs 2.0 and that it will be very different, I didn't master 1.x but I wonder, should I master it or is it better to wait till 2.0?
[01:43:51] *** mclenithan has joined #angularjs
[01:43:57] <opus_> 1.x
[01:44:42] *** LittleJye has joined #angularjs
[01:44:45] *** felixn has quit IRC
[01:44:52] *** bayousoft has joined #angularjs
[01:45:18] *** eBureau has joined #angularjs
[01:45:54] *** drej has joined #angularjs
[01:46:48] *** AciD`` has quit IRC
[01:47:54] *** jareddlc has quit IRC
[01:48:11] *** cthrax has quit IRC
[01:48:21] *** dejanr has quit IRC
[01:48:22] *** jonr22 has joined #angularjs
[01:48:23] *** woah has quit IRC
[01:48:39] *** mmealling has quit IRC
[01:48:39] *** uru is now known as uru|away
[01:48:44] *** hopefoo has quit IRC
[01:49:06] *** cam_y has joined #angularjs
[01:50:22] *** zB0hs has joined #angularjs
[01:50:23] *** cthrax has joined #angularjs
[01:50:55] *** conan_the_destro has quit IRC
[01:52:09] *** ahmetkapikiran has joined #angularjs
[01:52:30] *** jeffisabelle has quit IRC
[01:52:39] *** MalteJ has quit IRC
[01:53:04] *** goodenough has joined #angularjs
[01:53:13] *** josh-k has joined #angularjs
[01:53:30] *** jonr22 has quit IRC
[01:54:19] *** SeeThruHead has quit IRC
[01:55:12] *** Jdubs has quit IRC
[01:55:35] *** mrogne has joined #angularjs
[01:56:00] <mrogne> I have a select dropdown, but the option VALUES are numeric (assuming array index), whereas they should be text... plunker here: http://plnkr.co/edit/a1AW51hHnX8lGJDzYiz5?p=preview
[01:56:05] *** NaN has quit IRC
[01:56:13] *** nemothekid has quit IRC
[01:56:28] *** ahmetkapikiran has quit IRC
[01:56:32] *** caitp has joined #angularjs
[01:56:51] *** felixn has joined #angularjs
[01:56:52] *** matthoiland has joined #angularjs
[01:56:56] *** subr0utine has quit IRC
[01:57:11] *** ccohn has joined #angularjs
[01:57:22] *** dalguete is now known as [dalguete]
[01:57:48] *** qdk has quit IRC
[01:58:42] *** jae has quit IRC
[01:59:23] *** annlewis has quit IRC
[02:00:17] *** nattonerd has quit IRC
[02:00:29] *** [dalguete] has quit IRC
[02:00:45] *** asher^ has joined #angularjs
[02:01:10] *** mrogne has left #angularjs
[02:01:22] *** matthoiland has quit IRC
[02:01:33] *** subr0utine has joined #angularjs
[02:01:46] *** ccohn has quit IRC
[02:02:19] *** cs44 has joined #angularjs
[02:04:05] *** nemothekid has joined #angularjs
[02:04:07] *** weazekiel has joined #angularjs
[02:04:25] *** rtpg has joined #angularjs
[02:04:33] *** lite_ has joined #angularjs
[02:04:40] *** rtpg has joined #angularjs
[02:05:01] *** grantfunke_ has quit IRC
[02:05:10] *** junmin has quit IRC
[02:05:26] <cs44> hello room
[02:05:40] <sacho_> hi
[02:06:06] <cs44> looking for best practices on bootstrapping my app's user
[02:06:09] <cs44> that is
[02:06:44] <cs44> what's the general consensus on where to make calls to grab User data (profile, etc_
[02:06:51] <cs44> ui-router?
[02:06:57] <cs44> some "god" controller?
[02:07:09] *** araujo has joined #angularjs
[02:07:09] *** araujo has joined #angularjs
[02:07:11] <ctanga> how about a parent resolve
[02:07:13] *** BillCriswell has joined #angularjs
[02:07:21] <cs44> ctanga: in router?
[02:07:23] <ctanga> yeah
[02:07:30] <cs44> on an abstract route?
[02:08:19] <ctanga> sure, or a real one
[02:08:55] *** RedOrangeZ has quit IRC
[02:09:07] <cs44> cool. something like this? http://stackoverflow.com/questions/24496321/angular-ui-route-state-parent-and-resolve-nested-resolves
[02:09:10] *** gunn has joined #angularjs
[02:09:13] *** anapitupulu has joined #angularjs
[02:09:38] *** lite_ has quit IRC
[02:09:39] *** icfantv has quit IRC
[02:09:59] <cs44> thanks for the answer, resolve seems like the best place to do this.
[02:10:04] <cs44> inject it into the controller, voila
[02:10:11] *** elrabin has joined #angularjs
[02:10:35] *** kalehv has joined #angularjs
[02:11:17] <Grokling> cs44: Another good plunker around resolves here: http://plnkr.co/edit/LZTqdd?p=preview
[02:11:50] <cs44> thanks Grokling
[02:11:57] *** marr has quit IRC
[02:12:09] *** devinandrews has joined #angularjs
[02:12:21] *** goodenough has quit IRC
[02:13:27] *** narutimateum has joined #angularjs
[02:13:45] *** Guest94319 has quit IRC
[02:13:58] *** mary5030 has quit IRC
[02:14:00] *** matthoiland has joined #angularjs
[02:14:01] *** drej has quit IRC
[02:14:52] *** kalehv has quit IRC
[02:15:15] *** narutimateum2 has quit IRC
[02:16:29] *** willeponken has quit IRC
[02:16:54] *** ngbot has joined #angularjs
[02:16:54] <ngbot> [angular.js] juliemr pushed 1 new commit to master: http://git.io/EvpPeg
[02:16:54] <ngbot> angular.js/master b7e2b01 Julie Ralph: chore(ci): update protractor to version 1.4.0
[02:16:54] *** ngbot has left #angularjs
[02:17:19] *** tilgovi has quit IRC
[02:18:34] *** Foxandxss has quit IRC
[02:19:03] *** ngbot has joined #angularjs
[02:19:03] <ngbot> [angular.js] juliemr pushed 1 new commit to v1.2.x: http://git.io/fgOghw
[02:19:03] <ngbot> angular.js/v1.2.x f4648ab Julie Ralph: chore(ci): update protractor to version 1.4.0
[02:19:04] *** ngbot has left #angularjs
[02:19:18] *** alexw has quit IRC
[02:19:21] *** SeeThruHead has joined #angularjs
[02:20:12] *** willeponken has joined #angularjs
[02:20:21] *** subsonic has quit IRC
[02:20:22] *** tachy0n has joined #angularjs
[02:20:27] *** araujo has quit IRC
[02:21:08] <tachy0n> Anyone know key diffs between famous and polymer? Seems like both have tight Angular integration that's why I'm trying to ask in a middle ground room.
[02:21:17] *** woah has joined #angularjs
[02:22:35] *** cs44 has quit IRC
[02:23:03] <tachy0n> is it generally that polymer is wc focused and famo.us is ui sugar component focused only?
[02:24:45] *** alexw has joined #angularjs
[02:24:55] <tachy0n> sorry polymer is wc / polyfill focused while famo.us is ui effect focused only?
[02:26:16] *** poolside has joined #angularjs
[02:26:21] *** marshall_ has quit IRC
[02:26:33] *** jonr22 has joined #angularjs
[02:26:35] *** BillCriswell has joined #angularjs
[02:26:52] *** baweaver has quit IRC
[02:27:13] *** motionman has joined #angularjs
[02:27:28] *** baweaver has joined #angularjs
[02:28:02] <tachy0n> Or to be more descriptive of famo.us difference they don't like DOM and sidestep it altogether for 'layout' engine
[02:28:03] *** gordroidJS has joined #angularjs
[02:28:12] *** freeman42 has quit IRC
[02:28:18] *** justinobney has joined #angularjs
[02:29:55] *** nattonerd has joined #angularjs
[02:29:55] *** tachy0n has quit IRC
[02:30:43] *** TheAceOfHearts has quit IRC
[02:31:29] *** c00ljs has joined #angularjs
[02:32:09] *** Jdubs has joined #angularjs
[02:34:25] *** Soop has joined #angularjs
[02:34:42] *** bgerami has quit IRC
[02:34:53] *** baweaver has quit IRC
[02:35:31] *** drej has joined #angularjs
[02:35:31] <Soop> Would anyone mind helping me with a simple JSON and ng-repeat problem Im having?
[02:36:13] *** boboc has joined #angularjs
[02:36:52] <Grokling> Soop: Sounds straightforward enough. I only have 10 minutes before I have to leave, but I'll take a look.
[02:36:58] *** robdubya has quit IRC
[02:37:16] *** poolside has quit IRC
[02:37:18] *** josh-k has quit IRC
[02:37:43] *** tsalb has quit IRC
[02:38:07] *** kreiggers has quit IRC
[02:38:14] *** dhcar_AFK is now known as dhcar
[02:38:23] *** numenor has joined #angularjs
[02:39:41] <Soop> Heres a plnkr. I put the data retrieved from an api request into a file called api.json
[02:39:50] <Logicgate> Is there a way with UI router to pass custom data to the scope of the controller?
[02:40:13] *** dreambox has joined #angularjs
[02:40:44] <Soop> I can get the data to show up in the view as json, but Im having trouble with writing an actual ng-repeat
[02:41:11] <Grokling> Soop: Where's the plnker link?
[02:41:21] <Soop> http://plnkr.co/edit/LX2S6FFhoshB7b9UQGnf?p=info
[02:41:27] <Soop> Sorry thought I linked it.
[02:41:38] *** robdubya has joined #angularjs
[02:41:50] *** tskaggs has quit IRC
[02:41:51] *** basiclaser_ has quit IRC
[02:41:58] *** cohitre has quit IRC
[02:42:01] *** dannyc has joined #angularjs
[02:42:16] *** phuh has quit IRC
[02:42:37] *** tskaggs has joined #angularjs
[02:42:41] *** poolside has joined #angularjs
[02:42:47] *** phuh has joined #angularjs
[02:43:25] *** numenor_ has joined #angularjs
[02:43:38] *** numenor has quit IRC
[02:44:00] *** goodenough has joined #angularjs
[02:44:10] *** Tomdarkness has joined #angularjs
[02:44:21] *** numenor_ has left #angularjs
[02:44:43] *** dreambox has quit IRC
[02:45:06] *** numenor has joined #angularjs
[02:45:37] *** junmin has joined #angularjs
[02:45:43] *** threesixes has joined #angularjs
[02:46:27] <Grokling> Soop: Sorry - your plunker isn't far enough along to help quickly, and now I'm out of time.
[02:46:30] *** dannyc has quit IRC
[02:46:38] *** jonathanpglick has quit IRC
[02:46:42] *** TyrfingMjolnir has joined #angularjs
[02:46:45] <Soop> no problem. Thanks anyways
[02:47:20] <Grokling> <div ng-repeat="thing in guild">{{thing}}</div>
[02:47:38] <Grokling> Should get you a bit closer though.
[02:47:45] <Soop> Thanks
[02:48:17] <Grokling> Assuming you've managed to load your JSON into $scope.guild anyway.
[02:49:17] *** metasansana has joined #angularjs
[02:49:32] *** cpciv has joined #angularjs
[02:50:18] *** shpoont___ has joined #angularjs
[02:50:23] *** Aliks has quit IRC
[02:50:43] *** motionman has quit IRC
[02:50:58] *** dhcar is now known as dhcar_AFK
[02:51:33] *** glaksmono has joined #angularjs
[02:52:00] *** Soop has quit IRC
[02:54:43] *** numenor is now known as numenor_
[02:54:44] *** mdedetrich has joined #angularjs
[02:55:20] *** goodenough has quit IRC
[02:55:41] *** numenor_ is now known as numenor
[02:55:48] *** japhar81 has joined #angularjs
[02:55:58] *** onats has joined #angularjs
[02:56:14] *** MrBaboon has quit IRC
[02:56:38] *** josh-k has joined #angularjs
[02:56:59] <doginal> I have a form with braintree payment dropin inside of it, how do i submit the braintree form and then process the rest of of my form? i know with with jquery i could do it with $("#dropin").dispatchEvent(new Event('submit')); but i cant figure it out with angularjs. has anyone done this with angular before? i have tried using a directive but .dispatchEvent()/.submit/.trigger but they are undefined
[02:57:12] *** deanclkclk has joined #angularjs
[02:57:18] <deanclkclk> hey folks
[02:57:18] *** cakirke has quit IRC
[02:57:28] <deanclkclk> anyone ever used angular-translate?
[02:57:34] <themime> ctanga: do you have that ui-router squash link im having an issue finding it from this morning
[02:57:35] *** {DV8} has joined #angularjs
[02:57:39] *** nairys has quit IRC
[02:57:43] <ctanga> 1501
[02:57:52] <ctanga> https://github.com/angular-ui/ui-router/issues/1501
[02:57:59] *** beckyconning has quit IRC
[02:58:01] *** ccohn has joined #angularjs
[02:58:25] *** subr0utine has quit IRC
[02:58:31] <themime> ctanga: im a little confused still - how can i actually use this version? what does RFC stand for?
[02:58:35] *** jmstout has quit IRC
[02:58:41] <ctanga> RFC is “Request For Comments"
[02:59:00] <ctanga> it means I want you to read the RFC and comment with your opinions
[02:59:14] *** mven has joined #angularjs
[02:59:21] <themime> is it a branch you want to be apart of the master and you need support to do so?
[03:00:28] *** jbeaudry has quit IRC
[03:01:35] <ctanga> well sorta
[03:02:05] *** jmstout has joined #angularjs
[03:02:18] *** motionman has joined #angularjs
[03:02:19] <ctanga> it’s a branch that will be 99% likely be merged in. The RFC is to determine the behavior under the default configuration
[03:02:19] *** ccohn has quit IRC
[03:02:19] *** weazekiel has quit IRC
[03:02:49] *** danecando has joined #angularjs
[03:02:54] <ctanga> all 3 options will be supported, the question is which one will be the “out-of-the-box” configuration
[03:03:22] *** livingstn has joined #angularjs
[03:04:13] <themime> ctanga: what version do i need for passing state param data without url's being modified?
[03:05:02] *** jagga__ has quit IRC
[03:05:27] <sacho_> ctanga, well, A seems like a terrible out of the box config
[03:05:30] *** alexw has quit IRC
[03:05:52] <walbert> Yeah, C is the only reasonable "out of the box" config imo
[03:06:03] <sacho_> the least surprising would be C - the question is, is B enough of a benefit to break the surprise factor?
[03:06:14] *** subr0utine has joined #angularjs
[03:06:48] <ctanga> themime: sacho_ walbert please comment on the RFC
[03:07:32] *** michaelfavia has joined #angularjs
[03:07:41] <walbert> Already did (wbk)
[03:07:42] *** zB0hs has quit IRC
[03:07:47] <ctanga> ah, yes hi
[03:07:47] *** gunn has quit IRC
[03:07:58] *** mmealling has joined #angularjs
[03:08:06] *** enaqx has joined #angularjs
[03:08:26] *** rburns has joined #angularjs
[03:08:31] *** cthrax has quit IRC
[03:08:34] <themime> i haven't gotten anything to work as far as default params yet so im not sure how i feel yet. i guess my instinct is $state.go('newState',params) should just pass those params to the next state no questions asked and IF you add something to URL it'll manipulate it, then from there you can squash the URL if you want. is that the kind of comments youre looking
[03:08:35] <themime> for?
[03:09:02] <numenor> Hello, We are currently using the 'token in header' pattern for authenticaticating the API, Does anyone know any better way than this? Just name it and I will check it on google.
[03:09:44] *** gunn has joined #angularjs
[03:10:00] *** tkimmel has joined #angularjs
[03:10:27] <ctanga> themime: we only pass params that the state has declared, that part isn’t really up for debate
[03:10:29] *** gunn has joined #angularjs
[03:10:44] <ctanga> but the URL manipulation stuff, yes that’s what we’re discussing in that thread
[03:10:52] *** AWAW has quit IRC
[03:11:10] <ctanga> themime: feel free to build from my fork and try the default params stuff
[03:11:11] *** elrabin has quit IRC
[03:11:52] <ctanga> git clone https://github.com/christopherthielen/ui-router.git ui-router-branch; cd ui-router-branch; npm install; bower install; grunt;
[03:12:17] *** qstrahl has joined #angularjs
[03:12:22] <themime> ctanga: is there a reason it has to be declared? its been consisently frustrating having to create a new shared service to pass simple one time data between states without URL being changed :(
[03:12:25] <ctanga> then use build/angular-ui-router.js
[03:12:48] <ctanga> themime: I wasn’t around when that decision was made… that one is ancient
[03:13:03] <ctanga> but you can declare params now that aren’t in the URL
[03:13:25] <themime> oooh okay THAT is what i want out of the box, so it is available?
[03:13:30] *** marshall_ has joined #angularjs
[03:13:36] <themime> and just in your version or in the recent master?
[03:13:45] <themime> i wonder what version i even have..
[03:14:27] *** tkimmel has quit IRC
[03:14:37] <ctanga> my fork has that stuff working
[03:14:39] <themime> 2.8 and 2.11 ? i think 2.8 is the unminified we're actually using. its a little messy...
[03:14:41] *** cs44 has joined #angularjs
[03:14:41] <ctanga> it sorta works in 0.2.11
[03:15:02] <ctanga> but a bunch of stuff is broken relating to typed and optional params in 0.2.11
[03:15:05] *** elrabin has joined #angularjs
[03:15:06] <ctanga> my fork has the fixes for that stuff
[03:15:10] <themime> aaah awesome
[03:15:32] <ctanga> we’re waiting on the community to give feedback on 1501 before 0.2.12 will drop
[03:15:40] <themime> i don't have time right now but id love to get that working. the things they're doing to our precious global Session service...its just so sad
[03:15:50] <ctanga> yeah make them stop
[03:15:57] <themime> ...you have no idea
[03:15:59] <themime> haha
[03:16:01] <ctanga> heh
[03:16:04] *** SoulBlade has joined #angularjs
[03:16:07] <ctanga> and please comment on 1501
[03:16:11] <ctanga> whatever your opinion is
[03:16:45] <themime> will do!
[03:16:46] *** pikapp has joined #angularjs
[03:16:54] <sacho_> ctanga, alright :)
[03:16:54] <ctanga> thanks sacho_
[03:17:04] *** iateadonut has left #angularjs
[03:17:06] *** nattonerd has quit IRC
[03:17:28] <sacho_> although my view is very much skewed from the "how would I support this" pov
[03:17:50] *** richiebkr has quit IRC
[03:17:55] *** kreiggers has joined #angularjs
[03:18:37] <pikapp> I have a controller for my app that calls a service method that returns a promise, I have a child controller that calls a method in the parent controller, but the method does not exist in $scope because it happens in the promise.then(…) piece of the parent controller, how do I get around this?
[03:19:04] <sacho_> pikapp, have the child wait on the promise as well
[03:20:14] *** SoulBlade has quit IRC
[03:21:04] *** matthoiland has quit IRC
[03:21:17] <themime> ctanga: im confused why A would get /134342/ - wouldn't A get rid of the values in all cases only ever resulting in /parent/child/state ?
[03:21:31] <themime> thats what i would expect i guess
[03:21:32] *** matthoiland has joined #angularjs
[03:21:44] <ctanga> sacho_: well I’ll have to support it, whatever it is
[03:21:44] *** kirfu has joined #angularjs
[03:21:48] <ctanga> so thanks for that view
[03:22:09] <ctanga> themime: it only squashes if the parameter is set to the *default* value
[03:22:28] *** plexiv has quit IRC
[03:22:54] <themime> ctanga: ah default was confusing me a second - from looking it seems it means the parent state?
[03:23:12] *** poolside has quit IRC
[03:23:40] *** plexiv has joined #angularjs
[03:24:14] *** poolside has joined #angularjs
[03:24:20] *** SeeThruHead has quit IRC
[03:24:34] *** cs44 has quit IRC
[03:24:47] *** sahilsk has joined #angularjs
[03:24:54] <sahilsk> Hi all.
[03:24:56] <sahilsk> Greetings
[03:25:31] *** kreiggers has quit IRC
[03:25:34] *** RobinBAwesome has quit IRC
[03:25:53] *** matthoiland has quit IRC
[03:25:57] *** thirdknife has joined #angularjs
[03:26:08] <sahilsk> Angualr service and factory are confusing me. I don't know when to use which one. Though i can use my data fetch logci in either of them and it works. Please help in understanding it. I did went through the document and says one create instance of it, and one don't. I don't understand it
[03:26:38] <sacho_> sahilsk, the difference between service and factory is superfluous, and they both achieve the same thing - an injectable singleton
[03:26:48] <sacho_> sahilsk, pick one of them, and just use it everywhere
[03:26:50] *** frkout has joined #angularjs
[03:26:53] <hiptobecubic> Then why are they both there?
[03:26:59] <davek> Convention.
[03:27:04] <ctanga> to confuse people
[03:27:07] <sacho_> ^
[03:27:16] <davek> Services are generally a singleton, while factories are objects meant to be instantiated.
[03:27:21] <sacho_> sahilsk, the only difference you'll notice is in the way you define them
[03:27:25] <ctanga> I doubt they both made the cut for 2.0
[03:27:30] <davek> You are not required to treat them this way but that's the only distinction.
[03:27:31] <ctanga> did they?
[03:27:31] *** michaelSharpe has joined #angularjs
[03:28:01] *** jmstout has quit IRC
[03:28:25] *** whunt has quit IRC
[03:28:56] *** danflies has joined #angularjs
[03:29:03] *** jbeaudry has joined #angularjs
[03:29:08] *** ivanovjaroslaw has joined #angularjs
[03:29:08] <MistahKurtz> service and factory both register a singleton
[03:29:16] <MistahKurtz> with service, that singleton is an instance
[03:29:19] *** whitebook has joined #angularjs
[03:29:37] <MistahKurtz> with factory, it's whatever you've returned
[03:29:45] *** bkuberek has joined #angularjs
[03:29:45] *** jmstout has joined #angularjs
[03:29:47] *** junmin has quit IRC
[03:29:51] <MistahKurtz> still a singleton.
[03:29:59] *** tilgovi has joined #angularjs
[03:30:05] <ctanga> so the question is do you want a singleton, or a singleton
[03:30:21] <MistahKurtz> hahaha
[03:30:26] <ctanga> and the answer is: .provider
[03:30:27] <ctanga> hehe
[03:30:36] *** jbeaudry has quit IRC
[03:30:41] <davek> MistahKurtz, you said the same thing twice.
[03:30:55] <MistahKurtz> did I
[03:31:00] <MistahKurtz> Guess I did
[03:31:25] <ivanovjaroslaw> Hello! I misunderstanding with initial load of all angular functions and features. So, problem - I have form -> input with min max. And I have function refresh() in app.js, it is start by loading (after declarations of other functions). And in the refresh func I check the input on $valid. And angular return me error, that $valid of undefined
[03:31:54] *** snurfery has joined #angularjs
[03:31:57] <ctanga> do you guys think this is a reasonable commit message? “chore(lint): linted”
[03:32:05] <MistahKurtz> hmm
[03:32:17] <MistahKurtz> needs more lint: `chore(lint): linted all the lint`
[03:32:18] *** jackdpeterson has quit IRC
[03:32:19] <LittleJye> how about provider?
[03:32:23] <ivanovjaroslaw> should I use some wrap? like window ready?
[03:32:53] *** bkuberek_ has quit IRC
[03:33:12] <MistahKurtz> Provider is like service but provides (hehheheheh) a way to hook into the `config` time for configuration
[03:33:17] <ivanovjaroslaw> my code - http://jsfiddle.net/v34m5jof/
[03:33:19] <sacho_> ivanovjaroslaw, try making a plunker.
[03:33:39] <ctanga> that was quick
[03:33:46] *** MacWinner has quit IRC
[03:34:04] *** motionman is now known as MyMaSay
[03:34:09] <MistahKurtz> he ripped the space-time continuum in half
[03:34:20] <ivanovjaroslaw> sacho_: jsfiddle? no? I need put working code? with angular and etc
[03:34:24] <ivanovjaroslaw> ?
[03:34:27] *** LittleJye has quit IRC
[03:34:41] *** pikapp has quit IRC
[03:34:42] <sacho_> ivanovjaroslaw, the per_page_form is defined on the controller rather than on the scope
[03:35:06] <sacho_> or is it
[03:35:24] <ivanovjaroslaw> sacho_: so, in refresh() i use this - $scope.per_page_form.$valid
[03:35:27] *** mikehaas763 has joined #angularjs
[03:35:47] <sacho_> sure - what error are you getting?
[03:36:05] <ivanovjaroslaw> sacho_: TypeError: Cannot read property '$valid' of undefined
[03:36:21] *** Shrooms has quit IRC
[03:36:24] *** RobinBAwesome has joined #angularjs
[03:36:42] <ivanovjaroslaw> sacho_: I think, may be form valid functionallity don't load at time, when I call refresh()?
[03:36:44] *** hecspc has joined #angularjs
[03:36:46] *** poolside has quit IRC
[03:37:05] *** thirdknife has quit IRC
[03:37:08] *** dylang has joined #angularjs
[03:37:22] <sacho_> oh, I see
[03:37:28] <sacho_> yes, you can't call refresh() in the controller.
[03:37:38] *** goodenough has joined #angularjs
[03:37:57] <ivanovjaroslaw> sacho_: where should I call it?
[03:38:05] <sacho_> well, that's a good question
[03:38:17] <ivanovjaroslaw> sacho_: :)
[03:38:33] *** crunch-choco has joined #angularjs
[03:38:33] *** rburns has quit IRC
[03:38:43] <ivanovjaroslaw> sacho_: em... I just want refresh() on load page
[03:38:51] <sacho_> The simplest way might be to replace ng-controller="MessageContrller" with a directive of your own
[03:38:57] *** samuelharden has quit IRC
[03:39:00] *** rburns has joined #angularjs
[03:39:09] <sacho_> well, ok, not the simplest. but the cleanest.
[03:39:12] *** samuelharden has joined #angularjs
[03:39:19] <crunch-choco> guys, how can i send a variable's value from a directive to a controller?
[03:39:19] *** whitebook has quit IRC
[03:39:27] *** anivemin has quit IRC
[03:39:38] *** poolside has joined #angularjs
[03:39:39] <ivanovjaroslaw> sacho_: maybe some link? I little misunderstand you)
[03:39:46] <ivanovjaroslaw> in off docs
[03:39:47] *** codeman has quit IRC
[03:40:11] <ctanga> if I’m seeing “span3” “span9” stuff in css, is that the old version of bootstrap?
[03:40:18] <sacho_> ivanovjaroslaw, the problem is, there's no "things are loaded and ready to go" event in angular
[03:40:22] *** thirdknife has joined #angularjs
[03:40:35] <sacho_> ivanovjaroslaw, one thing you can use is a directive's link function - it'd work in a reasonbly high number of cases
[03:40:47] *** D9 has joined #angularjs
[03:40:54] <sacho_> ivanovjaroslaw, I presume you have ng-controller="MessageController as messageCtrl" somewhere
[03:40:56] *** ahmetkapikiran has joined #angularjs
[03:41:00] *** mjs2600 has quit IRC
[03:41:19] <sacho_> instead, write your own directive, like so:
[03:41:33] <ivanovjaroslaw> sacho_: yep, and I should rewrite code? em... call controller - directive?
[03:41:39] *** thirdknife has quit IRC
[03:41:41] <mikehaas763> I've always liked how the latest angular is deployed internally automatically at Google. However, I'm not so sure it's the greatest idea for the external facing angularjs homepage. Hard to pitch AngularJS to large corps that have computers still stuck on IE8 when the homepage doesn't even work correctly with IE8.
[03:41:43] *** samuelharden has quit IRC
[03:42:25] *** moritzs has quit IRC
[03:42:58] *** wafflej0ck__ has joined #angularjs
[03:43:03] *** wafflej0ck has quit IRC
[03:43:53] *** DoubleAW has joined #angularjs
[03:44:18] *** jshultz has quit IRC
[03:44:46] *** dcherman has joined #angularjs
[03:44:50] <sacho_> ivanovjaroslaw, http://plnkr.co/edit/cC2zgq2u2B6qDblw6Cbi?p=preview
[03:44:55] *** jmstout has quit IRC
[03:45:08] *** mruzekw has quit IRC
[03:45:09] <sacho_> mikehaas763, but 1.3 doesn't even support ie8
[03:45:26] *** patrick99e99 has quit IRC
[03:45:29] *** ahmetkapikiran has quit IRC
[03:45:34] <mikehaas763> sacho_: But 1.2 does, and it's not like 1.2 is being depracated
[03:45:48] <mikehaas763> Well, maybe it's being depracated but it's not like there ignoring it
[03:45:57] <sacho_> ivanovjaroslaw, you can use all your existing code in MessageController, the only difference would be adding the directive
[03:46:01] <mikehaas763> s/depracated/deprecated
[03:46:04] *** boboc has quit IRC
[03:46:10] <mikehaas763> s/there/they're
[03:46:30] <sacho_> that 1.2 works on ie8 is mostly a happy coincidence rather than a conscious effort, I think
[03:46:31] *** kreiggers has joined #angularjs
[03:47:02] <mikehaas763> sacho_: No, it was a very conscious effort
[03:47:18] *** grantfunke_ has joined #angularjs
[03:47:48] *** dcherman2 has joined #angularjs
[03:47:56] *** jmstout has joined #angularjs
[03:48:26] *** alexw has joined #angularjs
[03:49:05] <alexw> What's the best way to access a form object outside of the child scope? v
[03:49:05] <alexw> http://plnkr.co/edit/wHXKd08sHLZcaOM3hXW9?p=preview
[03:49:13] <alexw> I'm trying to submit the the form
[03:49:41] *** gunn has quit IRC
[03:49:54] *** zz_night-owl is now known as night-owl
[03:50:02] *** wafflej0ck__ is now known as wafflej0ck
[03:50:28] *** M8M has joined #angularjs
[03:50:35] *** danflies has quit IRC
[03:50:48] *** robdubya has quit IRC
[03:50:52] *** dcherman has quit IRC
[03:50:58] <M8M> what is the best way to add and remove .active class in nav menu via Angular?
[03:51:02] *** marcjs has quit IRC
[03:51:03] *** whitebook has joined #angularjs
[03:51:05] *** jjasonclark has quit IRC
[03:51:26] <M8M> I am looking for a code example.
[03:51:31] <crunch-choco> guys, i have my byte array stored on my directive, and the rest of my object on my controller, how do i join both data?
[03:52:05] *** gunn has joined #angularjs
[03:53:08] <wafflej0ck> M8M: ng-class
[03:53:37] *** lite_ has joined #angularjs
[03:53:55] *** cpciv has quit IRC
[03:54:02] *** wd40s has quit IRC
[03:54:05] <ivanovjaroslaw> sacho_: hm... I don't know, how I should write directive in this case right... http://jsfiddle.net/FZcZ4/40/ - still don't work, but, may be I deal some wrong
[03:54:10] <wafflej0ck> crunch-choco: a factory or a service typically is the way to share data between parts that aren't themselves persistent or related directly in the DOM
[03:54:16] *** blackjid_ has quit IRC
[03:54:20] *** jMyles has quit IRC
[03:54:55] <reported> Anyone here mind taking a look at my code. I got it to work and all by checking each one and them showing the text i want but I cannot get them to all be allowed to be checked. http://plnkr.co/edit/Tbetgzf1uHe3dFpu6X2N?p=preview The live site is here so you can see what it does http://cmtz.co/gens/cc.html?
[03:55:17] *** kirfu has quit IRC
[03:56:09] <crunch-choco> wafflej0ck: ok, im going to try, do we have a code example?
[03:56:31] *** SeeThruHead has joined #angularjs
[03:56:52] *** pikapp has joined #angularjs
[03:57:17] <wafflej0ck> crunch-choco: here's one I wrote up if you have questions about it feel free to ask http://stackoverflow.com/questions/26695410/how-to-get-the-http-request-data-in-my-example/26695484#26695484
[03:57:41] <wafflej0ck> crunch-choco: here's the docs on it https://docs.angularjs.org/guide/providers
[03:57:46] *** mikehaas763 has quit IRC
[03:57:51] *** blackjid_ has joined #angularjs
[03:57:57] *** MyMaSay is now known as motionman
[03:58:25] *** junmin has joined #angularjs
[03:58:27] *** narutimateum has quit IRC
[03:58:31] *** lite_ has quit IRC
[03:58:36] *** josh-k_ has joined #angularjs
[03:58:36] *** mclenithan has quit IRC
[03:58:36] *** dnull has joined #angularjs
[03:58:37] *** gunn has quit IRC
[03:58:38] *** narutimateum has joined #angularjs
[03:58:44] <sacho_> ivanovjaroslaw, like I said, you'd have to remove the ng-controller
[03:58:45] *** ccohn has joined #angularjs
[03:58:51] *** BlinkyBill has quit IRC
[03:58:58] *** pikapp has quit IRC
[03:59:21] <crunch-choco> wafflej0ck: thank you very much
[03:59:39] *** gunn has joined #angularjs
[04:00:10] *** samuelharden has joined #angularjs
[04:00:39] *** asher^ has quit IRC
[04:00:52] <wafflej0ck> crunch-choco: np
[04:00:56] *** jjasonclark has joined #angularjs
[04:01:32] *** SeeThruHead has quit IRC
[04:01:45] <sacho_> ivanovjaroslaw, the directive can have a controllerAs to keep with your usage
[04:02:03] <wafflej0ck> M8M: you figure it out?
[04:02:04] <jsheely> I think I'm doing something massively incorrect but i'm not sure
[04:02:08] *** josh-k has quit IRC
[04:02:15] <M8M> wafflej0ck: working on it
[04:02:33] <wafflej0ck> M8M: k let me know if you get stuck shouldn't be too bad
[04:02:37] *** jjasonclark has quit IRC
[04:02:50] <M8M> yeah, there are like 100 ways to skins this cat :)
[04:02:56] <wafflej0ck> M8M: for sure
[04:02:56] *** rho has joined #angularjs
[04:03:01] <jsheely> Is it weird to have an ng-repeat that contains a function for the array? and "filters" a scope variable ?
[04:03:04] <wafflej0ck> M8M: choice is a big problem in angular
[04:03:16] <M8M> going with custom directive
[04:03:25] *** shoerain has quit IRC
[04:03:29] *** ccohn has quit IRC
[04:03:54] <crunch-choco> wafflej0ck: hm, now my variable is in my directive, if i store it in a service, can i call it back from a controller?
[04:04:14] <wafflej0ck> jsheely: I wouldn't say weird but you can make it more performant if you can do the processing and filtering before assigning it to a variable the ng-repeat is bound to
[04:04:15] *** gunn has quit IRC
[04:04:26] <wafflej0ck> crunch-choco: yeah see in the SO post
[04:04:35] <wafflej0ck> crunch-choco: in the bottom of the code I have 2 small controllers
[04:04:45] *** phuh has quit IRC
[04:05:11] *** Rukouen has joined #angularjs
[04:05:15] <jsheely> ng-repeat="listItem in getFilteredList(parent)", getFilteredList(parent) { return _.where($scope.list,{Id:parent)}
[04:05:21] *** nemothekid has quit IRC
[04:05:27] <jsheely> sudo code, but that in theory should work fine right?
[04:05:30] *** phuh has joined #angularjs
[04:05:42] <ivanovjaroslaw> sacho_: hm... there error again on $valid. but I commented line of $valid check and my all controller functionallty don't work without any error. should I use another call to refresh() in this case. It still messageCtrl.refresh()
[04:05:44] <crunch-choco> wafflej0ck: ah yes sorry, i got a bit scared when i saw deferred word :p
[04:05:44] *** gunn has joined #angularjs
[04:05:50] <wafflej0ck> jsheely: if you're concerned about it you can always setup a counter variable and have it increment the counter on each call to getFilteredList and log it out, but should be fine
[04:05:50] *** gunn has quit IRC
[04:06:00] <wafflej0ck> crunch-choco: hehe $q and deferred are your friend
[04:06:10] <wafflej0ck> crunch-choco: just gotta get used to it but for asynch things it works out great
[04:06:21] <wafflej0ck> crunch-choco: and if it might be asynch it works great
[04:06:29] *** gunn has joined #angularjs
[04:06:49] <crunch-choco> wafflej0ck: i have no notion of async programming yet
[04:06:52] <jsheely> wafflej0ck Thanks. I'm having some sort of issues with it looping entering the function 6 times when there are only 2 items. So wanted to make sure that was possible before continuing to debug this sucker
[04:06:52] <crunch-choco> wafflej0ck: too new
[04:06:55] *** numenor has quit IRC
[04:07:18] *** narutimateum2 has joined #angularjs
[04:07:31] *** robdubya has joined #angularjs
[04:07:51] <wafflej0ck> crunch-choco: you know about AJAX or $http at all yet?
[04:08:04] *** alexw has quit IRC
[04:08:44] *** ctanga has quit IRC
[04:08:53] *** SeeThruHead has joined #angularjs
[04:09:07] *** rburns has quit IRC
[04:09:11] *** narutimateum has quit IRC
[04:09:12] <crunch-choco> wafflej0ck: yes
[04:09:36] *** rburns has joined #angularjs
[04:09:47] *** snurfery_ has joined #angularjs
[04:09:55] <crunch-choco> wafflej0ck: but i will look at async later, im abt to get fired if i dn't deliver on time ;O
[04:10:25] *** MaxV has joined #angularjs
[04:10:30] <jsheely> I just found out that v1.3 if you use a Chrome extension like (Form Filler) it won't trigger the form.$valid events.
[04:10:35] *** shoerain has joined #angularjs
[04:11:00] *** gunn has quit IRC
[04:11:52] *** dejanr has joined #angularjs
[04:12:17] <wafflej0ck> crunch-choco: okay well AJAX is asynchronous javascript and xml, so that's a big way of saying it does some asynch thing to send a request (XMLHttpObject) to load more data into a website without actually reloading the page, but point is when you send a request to get more data or a template or whatever then you have to wait some amount of time before the response comes back.... so the $q service allows you to make use of the Promise API which
[04:12:17] <wafflej0ck> basically means you can register functions using the .then(successFunc,errorFunc) method of the promise
[04:12:29] *** snurfery has quit IRC
[04:12:30] *** snurfery_ is now known as snurfery
[04:12:38] *** asher^ has joined #angularjs
[04:12:39] <M8M> wafflej0ck: thoughts about this approach? http://www.jacopretorius.net/2014/09/using-custom-directives-in-angularjs.html
[04:13:01] *** gunn has joined #angularjs
[04:14:08] <wafflej0ck> crunch-choco: more on $q and promises here https://docs.angularjs.org/api/ng/service/$q good to understand because $http uses them and is important for making AJAX calls and $resource uses $http which is important for interacting with RESTful backends (if you don't choose some other abstraction but they all use promises)
[04:14:13] *** wallerdev has quit IRC
[04:14:13] <sacho_> ivanovjaroslaw, try making a plunker.
[04:14:38] <wafflej0ck> M8M: are you using ui-router by chance?
[04:14:41] *** Nizumzen has quit IRC
[04:14:52] *** michaelfavia has quit IRC
[04:15:00] *** philipd has joined #angularjs
[04:15:09] <wafflej0ck> M8M: if so you could make use of http://angular-ui.github.io/ui-router/site/#/api/ui.router.state.directive:ui-sref-active
[04:15:11] *** MaxV has quit IRC
[04:15:35] *** philipd has quit IRC
[04:15:41] <wafflej0ck> if you're using ngRoute consider switching to ui-router it is beneficial in the long run
[04:15:48] <wafflej0ck> and not hard to switch
[04:16:08] <wafflej0ck> the config is very similar and supports all the same features from what I can tell but adds a lot as well
[04:16:31] <ivanovjaroslaw> sacho_: like this - http://plnkr.co/edit/W54grfl5SjLQr1nkh2X6?p=preview ?
[04:16:43] *** michaelfavia has joined #angularjs
[04:16:49] *** MistahKurtz has quit IRC
[04:16:55] <ivanovjaroslaw> sacho_: I don't know how to include angular and bootstrap for working sample
[04:17:20] <M8M> wafflej0ck: I don't think we are, I will pass this on to the team.
[04:17:38] *** livingstn has quit IRC
[04:17:42] *** gunn has quit IRC
[04:17:48] <sacho_> ivanovjaroslaw, check out the buttons on the right
[04:17:52] <wafflej0ck> M8M: okay, I mean I started with ngRoute but once you switch to ui-router it's hard to see why to use ngRoute anymore really
[04:18:07] <wafflej0ck> M8M: and I think it would solve your immediate problem with less hassle
[04:18:14] *** cam_y has quit IRC
[04:18:25] *** mruzekw has joined #angularjs
[04:18:28] <M8M> yeah, the devs made that decision, I will run it by them. Makes sense.
[04:18:32] *** danflies has joined #angularjs
[04:18:40] <crunch-choco> wafflej0ck: yes, but my current work is not web related yet
[04:18:49] <themime> +1 for ui-router
[04:19:05] <themime> been angularing for ~4 months never touched ngRoute
[04:19:09] *** ahmetkapikiran has joined #angularjs
[04:19:10] <M8M> wafflej0ck: we are using node package angular-route
[04:19:33] <wafflej0ck> yeah that corresponds to the regular ngRoute not ui-router
[04:20:04] <themime> M8M: ui-router was written by angular team, if thats a concern your team has
[04:20:05] *** gunn has joined #angularjs
[04:20:29] <M8M> we are currently using this - https://www.npmjs.org/package/angular-route
[04:21:02] <M8M> themime: thanks, I am not sure why the devs chose that specific routing. I am the front-ender, crossing over here and there.
[04:21:13] *** subr0utine has quit IRC
[04:21:24] <wafflej0ck> M8M: bower install angular-ui-router is the one we're talking about
[04:21:39] <wafflej0ck> M8M: it's just the default
[04:21:46] <crunch-choco> is it possible to retrieve a value from directive to controller?
[04:21:53] <M8M> yeah, I see that.
[04:21:53] <wafflej0ck> M8M: if you don't look around or test out the two then that's what the tutorials tell you to use
[04:21:55] <crunch-choco> without service trick
[04:22:22] *** shampine has joined #angularjs
[04:22:27] <wafflej0ck> crunch-choco: there are lots of ways to do it really but depends on the relationship between the directive and the controller
[04:23:07] <crunch-choco> wafflej0ck: they are disconnected from each other
[04:23:25] <wafflej0ck> crunch-choco: you can use a value which is another way to define a provider, see the provider docs I linked above for details on different ways to define providers and how they work
[04:23:48] <crunch-choco> app.value('varName', var); ?
[04:23:53] <wafflej0ck> crunch-choco: yup
[04:23:57] <doginal> why would .dispatchEvent(new Event('submit')); be undefined?
[04:24:04] <wafflej0ck> crunch-choco: then inject varName into both parts
[04:24:11] *** michaelSharpe has quit IRC
[04:24:16] <crunch-choco> wafflej0ck: i see i will try that
[04:24:50] *** michaelfavia has quit IRC
[04:24:51] <crunch-choco> wafflej0ck: but wait, var can be a value coming form the directive right?
[04:24:52] *** gunn has quit IRC
[04:24:53] *** Cache_Money has joined #angularjs
[04:26:06] *** gunn has joined #angularjs
[04:26:25] *** jmstout has quit IRC
[04:26:31] *** robdubya has quit IRC
[04:26:41] <wafflej0ck> crunch-choco: well you can basically do app.value("MyObj", {}); then inject MyObj into the directive definition and assign MyObj.someProperty=someValue; In the controller you can setup a $scope.$watch(function(){return MyObj.someProperty},function(newVal,oldVal){console.log(newVal,oldVal)})
[04:26:54] *** jonr2219 has joined #angularjs
[04:27:06] *** jonr2219 has quit IRC
[04:27:18] <crunch-choco> wafflej0ck: oh, so that's how it works
[04:27:28] <wafflej0ck> it's one way it can work :)
[04:27:45] <crunch-choco> wafflej0ck: great, thank you again :)
[04:28:04] <ivanovjaroslaw> sacho_: http://plnkr.co/edit/W54grfl5SjLQr1nkh2X6?p=preview - still don't work. I think, it is not load angular from remote
[04:28:07] *** justinobney has quit IRC
[04:28:17] *** wd40s has joined #angularjs
[04:28:17] <wafflej0ck> crunch-choco: np, make sure that after the value is changed by the directive something is calling scope.$apply() too if you aren't using some angular service
[04:28:28] *** Sontakey has quit IRC
[04:28:32] *** Una has joined #angularjs
[04:28:48] *** Rukouen has quit IRC
[04:28:52] *** dreambox has joined #angularjs
[04:28:58] <sahilsk> thanks sacho_ . It helped. I'll use service forever and ever :D
[04:29:12] *** Hackwar has joined #angularjs
[04:29:56] *** discgo has left #angularjs
[04:30:10] *** jonr22 has quit IRC
[04:30:19] <wafflej0ck> doginal: .dispatchEvent on what?
[04:30:24] *** tskaggs has quit IRC
[04:30:44] *** dannyc has joined #angularjs
[04:30:45] *** discgo has joined #angularjs
[04:30:46] <doginal> i am trying to submit a form but it seems to always be null
[04:30:55] <doginal> which doesnt make sense cuz its on the page
[04:31:04] *** Hackwar1 has quit IRC
[04:31:31] <crunch-choco> wafflej0ck: ok, im tryign right now :)
[04:31:33] <sacho_> ivanovjaroslaw, I fixed your script tags - looks like it's working, to me - http://plnkr.co/edit/b2t7fhrINBbva8uJUl2c?p=preview
[04:31:55] *** mandric has quit IRC
[04:31:59] <crunch-choco> wafflej0ck: woot, it worked!
[04:32:06] <wafflej0ck> crunch-choco: baller
[04:32:13] <wafflej0ck> hehe
[04:32:22] <crunch-choco> wafflej0ck: thank you so much!
[04:32:24] *** woah has quit IRC
[04:32:28] <wafflej0ck> crunch-choco: np
[04:32:39] <crunch-choco> i'd buy you a beer if you come to paris :p
[04:32:49] <wafflej0ck> hmm I'll remember that crunch-choco
[04:32:58] *** matthoiland has joined #angularjs
[04:33:02] <wafflej0ck> I'll be yelling your nick in the streets
[04:33:09] <crunch-choco> haha
[04:33:15] <crunch-choco> where are you from btw?
[04:33:33] *** dreambox has quit IRC
[04:33:33] <wafflej0ck> Just at the edge of Chicago IL
[04:33:54] *** voodoo1 has joined #angularjs
[04:34:15] <wafflej0ck> doginal: are you sure you aren't looking for trigger(), or just calling submit() on the form object?
[04:34:39] <wafflej0ck> doginal: typically dispatchEvent is just to send a bubbling event up through the DOM for parent elements to have the event captured
[04:35:05] <doginal> its braintree payments dropin ui and it needs to be submitted first , i have tried submit and tigger and nothing works atm
[04:35:09] *** dannyc has quit IRC
[04:35:25] <crunch-choco> wafflej0ck: :)
[04:35:30] <wafflej0ck> doginal: hmm... yeah submit() typically works if you have the form element
[04:35:52] *** poolside has quit IRC
[04:36:02] *** gunn has quit IRC
[04:36:07] <doginal> yea braintree told me to do document.getElementById(“FORMWITHDROPIN”).dispatchEvent(new Event(‘submit’)); but it doesnt work either
[04:37:22] *** matthoiland has quit IRC
[04:37:31] <wafflej0ck> doginal: do you have an action specificed on the form?
[04:37:57] <doginal> i have a button which fires off a function in my controller
[04:38:35] <doginal> i got it!
[04:38:36] *** draconis-chomp has joined #angularjs
[04:38:37] <doginal> i think
[04:38:38] *** RobinBAwesome has quit IRC
[04:38:57] <M8M> wafflej0ck: I am not going to be able to switch easily, I need a solution now, and may revisit later
[04:38:58] <wafflej0ck> doginal: okay well see the docs about "Submitting a form and preventing the default" action https://docs.angularjs.org/api/ng/directive/form
[04:39:11] <doginal> i was using the wrong id i think
[04:39:28] *** tilgovi has quit IRC
[04:39:29] <wafflej0ck> M8M: yeah the directive idea is fine though tricky part is just knowing which navigation corresponds to the current path. can be a bit tricky
[04:40:01] *** deanclkclk_ has joined #angularjs
[04:41:41] *** rho has quit IRC
[04:41:59] *** TyrfingMjolnir has quit IRC
[04:42:38] *** rtpg has quit IRC
[04:43:00] *** Nijikokun has quit IRC
[04:43:35] *** nemothekid has joined #angularjs
[04:44:50] *** Joe_knock has left #angularjs
[04:45:13] *** Nijikokun has joined #angularjs
[04:45:48] *** kreiggers has quit IRC
[04:46:27] <deanclkclk_> hello everyone...has anyone used angular-translate before?
[04:46:35] <jsheely> Having a late night logic error
[04:46:47] <snurfery> freaky deaky
[04:46:52] <jsheely> wafflej0ck This is the topic we were talking about a little bit ago. Any advice? http://plnkr.co/edit/oi9t40kpbiBGHPmy6f0M?p=preview
[04:47:37] *** JBreit has quit IRC
[04:48:05] *** poolside has joined #angularjs
[04:48:05] <deanclkclk_> yeah having an issue with Language Negotiation
[04:48:27] <deanclkclk_> the key is 'en_US': 'en',
[04:48:33] *** dylang has quit IRC
[04:48:46] <deanclkclk_> however, what if my browser is 'en_GB'
[04:48:49] <deanclkclk_> it wouldn't work
[04:49:36] <deanclkclk_> I wanted it to select en no matter what 'en_?' is
[04:49:40] <deanclkclk_> is this possible?
[04:51:00] <wafflej0ck> jsheely: http://plnkr.co/edit/jE7APalN1obLbBJlzUib?p=preview
[04:51:21] *** thirdknife has joined #angularjs
[04:51:29] *** mdedetrich has quit IRC
[04:51:35] *** davesidious__ has joined #angularjs
[04:51:54] <crunch-choco> h
[04:52:20] <wafflej0ck> jsheely: okay so you actually want to return an array from this filter function
[04:52:26] <crunch-choco> how comes my base64 file is composed of a list of numbers?
[04:52:36] <jsheely> wafflej0ck yes
[04:52:41] *** mdedetrich has joined #angularjs
[04:52:47] <wafflej0ck> jsheely: instead it's finding individual objects
[04:52:47] *** marshall_ has quit IRC
[04:52:53] *** snurfery has quit IRC
[04:53:01] *** TyrfingMjolnir has joined #angularjs
[04:53:19] <jsheely> Honestly I dunno what it's doing
[04:53:25] <jsheely> Because that function gets called 6 times
[04:53:26] *** kreiggers has joined #angularjs
[04:53:29] <jsheely> when there are only 3 categories
[04:53:44] <wafflej0ck> jsheely: think you want where
[04:53:47] <wafflej0ck> _.where
[04:54:06] <jsheely> oh yea, but htat doens't make any difference
[04:54:12] *** whitebook has quit IRC
[04:54:15] <wafflej0ck> jsheely: regarding how many times the function is called it will be called anytime a digest occurs and it's value may have changed
[04:54:26] *** JBreit has joined #angularjs
[04:54:29] <jsheely> wafflej0ck ah yea I guess that's true
[04:54:34] <wafflej0ck> jsheely: you shouldn't be concerned with this only that it isn't called 1000 times
[04:54:54] <jsheely> Hmm
[04:55:00] <wafflej0ck> but as the complexity of the app grows the more things you have watches on like this the more it becomes an issue
[04:55:01] <jsheely> So the _.where actually did work
[04:55:08] <jsheely> So maybe I"m dumb somewhere else then
[04:55:14] *** davesidious_ has quit IRC
[04:55:36] <jsheely> But that helps. Thank you sir
[04:55:38] *** SeeThruHead has quit IRC
[04:55:45] <wafflej0ck> yup np
[04:55:48] <jsheely> At least I know it's some sort of array issue with my code
[04:56:39] <ivanovjaroslaw> sacho_: Ok, thank you for your help! I correct plunker - http://plnkr.co/edit/svaRuPz6qgvs2bKM9tIa?p=preview . So, first problem. When I try to use directive - it is not working. I changed ng-controller... in body on load-directive and recomment code of directive - don't work
[04:57:18] <ivanovjaroslaw> sacho_: it is look like messageCtrl.refresh() don't work know. How I should call it, when I use directive?
[04:57:26] *** emmesswhy has joined #angularjs
[04:57:51] <ivanovjaroslaw> sacho_: don't work now ***
[04:59:04] *** Yahkob has joined #angularjs
[04:59:10] *** SeeThruHead has joined #angularjs
[04:59:26] *** ccohn has joined #angularjs
[05:00:28] <wafflej0ck> deanclkclk_: does this fix it? https://github.com/angular-translate/angular-translate/issues/426
[05:01:08] <deanclkclk_> bummer
[05:01:22] <deanclkclk_> I could extend it right?
[05:01:25] <wafflej0ck> deanclkclk_: what's that? it's closed and code merged?
[05:01:36] <deanclkclk_> bummer ==too bad
[05:01:42] *** M8M has quit IRC
[05:01:50] <deanclkclk_> meaning it's feature enhancement
[05:01:54] <deanclkclk_> seems it's not available yet
[05:02:17] <wafflej0ck> committed on May 31
[05:02:21] <wafflej0ck> should be?
[05:02:23] <deanclkclk_> oh
[05:02:25] <deanclkclk_> let me check
[05:02:28] *** M8M has joined #angularjs
[05:02:40] *** junmin has quit IRC
[05:02:44] <sacho_> ivanovjaroslaw, "doesn't work" is not useful information in any sense
[05:03:22] <sacho_> also, the last plunker I pasted showed that if you use the directive, your refresh function has page_per_form available.
[05:03:23] *** deweydb has joined #angularjs
[05:03:34] <deweydb> with ui-router in non-html5 mode, should the browsers forward and back buttons still work?
[05:03:46] <deweydb> or am i just doing something that breaks that
[05:03:50] <wafflej0ck> deweydb: yeah as far as I know
[05:03:53] <wafflej0ck> deweydb: yeah for sure
[05:03:57] <wafflej0ck> deweydb: check some samples
[05:04:00] *** ccohn has quit IRC
[05:04:12] <deweydb> weird
[05:04:15] <deweydb> it works some times too
[05:04:17] <deweydb> ughh
[05:04:21] <deweydb> it was working fine in html5 mode
[05:04:24] <jsheely> wafflej0ck yea thank you. I wanted to do a filter in my code instead of find.... Running on 4 hours of sleep, starting to catch up with me
[05:04:26] <deweydb> stupid crappy server side devs
[05:04:40] *** TyrfingMjolnir has quit IRC
[05:04:44] *** phuh has quit IRC
[05:04:59] <wafflej0ck> deweydb: they take away you redirect?
[05:05:10] *** phuh has joined #angularjs
[05:05:29] *** snurfery has joined #angularjs
[05:05:44] <deweydb> yeah, they just don't want to do it. for whatever silly reason
[05:05:53] <deweydb> most likely laziness
[05:05:59] <snurfery> sup yall
[05:06:11] *** travm has joined #angularjs
[05:06:11] *** TyrfingMjolnir has joined #angularjs
[05:06:24] <deweydb> ohhhhh
[05:06:27] <deweydb> i see whats happening
[05:06:31] <ivanovjaroslaw> sacho_: em, so, messages don't show in case with using directive. I think, maube I should call finctions not like "messageCtrl.refresh()". Maybe "load-directive.refresh()" or something else.
[05:06:32] <deweydb> its after i refresh the page
[05:06:39] <deweydb> i guess ui-router loses its page history
[05:07:00] <deweydb> can i just watch the url and force it to load a state when the url changes somehow?
[05:07:07] <deweydb> strange that ui-router doesn't handle that itself
[05:07:12] <wafflej0ck> deweydb: hmm well really the browser should be storing all the urls I believe
[05:07:20] <deweydb> no, it does.
[05:07:37] <deweydb> ok, say i've just been to: state a, then state b, then state c.
[05:07:43] <deweydb> if i press back it will load state b fine
[05:07:48] <deweydb> but if i refresh before pressing back
[05:07:50] <sacho_> ivanovjaroslaw, do you have an example where these messages don't show?
[05:07:53] <deweydb> it changes the url to state b
[05:07:54] *** numenor has joined #angularjs
[05:07:55] <deweydb> but doesn't load it
[05:08:21] <wafflej0ck> deweydb: can't reproduce here
[05:08:29] <wafflej0ck> deweydb: anything in the console?
[05:08:38] <crunch-choco> does angularjs have a quick method to convert binaries to strings?
[05:08:45] <ivanovjaroslaw> sacho_: sec please. I'll create this fork
[05:08:55] <wafflej0ck> crunch-choco: no it's really just the MVC parts not really extra utilities
[05:09:04] <wafflej0ck> crunch-choco: still need things like momentjs and lodash and whatnot
[05:09:07] <JosephSilber> wafflej0ck, thankfully
[05:09:20] <crunch-choco> darn
[05:09:21] <wafflej0ck> JosephSilber: agree good to not throw it all in one bag :)
[05:09:21] *** MaxV has joined #angularjs
[05:09:23] <crunch-choco> okok
[05:09:31] <deweydb> wafflej0ck: weird, no, i was wrong, its something else, no clue whats causing it
[05:09:57] <snurfery> crunch-choco: there are some builtins like atob and btoa
[05:09:58] *** rburns has quit IRC
[05:10:29] *** rburns has joined #angularjs
[05:10:31] *** BillCriswell has quit IRC
[05:10:33] *** mruzekw has quit IRC
[05:10:39] <snurfery> oh right, yeah those aren't angular specific, they're just JS things
[05:10:50] <wafflej0ck> yeah still good to mention
[05:10:55] *** Left_Turn has quit IRC
[05:10:57] <wafflej0ck> what binary to string is it though that seems strange to me
[05:11:01] *** rchavik has joined #angularjs
[05:11:02] <snurfery> "thingamabobs", if we're getting technical
[05:11:04] <ivanovjaroslaw> sacho_: correct with controller http://plnkr.co/edit/svaRuPz6qgvs2bKM9tIa?p=preview . incorrect with directive - http://plnkr.co/edit/29U16RVPAxtMQfeM366O?p=preview (hmm, per_page scope undefined. I look for your past plunker to analyze this)
[05:11:07] *** elrabin has quit IRC
[05:11:38] <snurfery> wafflej0ck: might just be base64 encoding? dunno I was using it the other day blindly following SO advice
[05:11:57] <sacho_> ivanovjaroslaw, it's not undefined, there's still a this.refresh() call in the controller.
[05:12:01] <wafflej0ck> for the sake of obfuscation?
[05:12:14] <snurfery> nah, handling inline image data
[05:12:20] <sacho_> ivanovjaroslaw, http://plnkr.co/edit/LyY0Vi7K6lgqiU2xXTb9?p=preview
[05:12:26] <wafflej0ck> right image data I get but why strings base64 encoded?
[05:12:38] <wafflej0ck> I've only really seen that with viruses trying to hide what they're doing
[05:13:05] <wafflej0ck> but pretty easy to run that through a decoder and see what's up
[05:13:37] <ivanovjaroslaw> sacho_: ok, I remove call refresh() in controller - http://plnkr.co/edit/29U16RVPAxtMQfeM366O?p=preview . messages are not shown
[05:13:37] *** MaxV has quit IRC
[05:13:54] <crunch-choco> :o
[05:14:22] <sacho_> you can base64 encode to transport arbitrary strings through protocols that don't allow arbitrary strings, but allow the base64 encoded characters...I think url parameters fit that description
[05:14:38] <sacho_> (of course, you could also uri encode them)
[05:15:22] <wafflej0ck> sacho_: interesting yeah have only used URI encoding for that myself and most of the time with data it's going through a POST anyhow but good to know
[05:16:00] *** pen has joined #angularjs
[05:16:07] *** danecando has quit IRC
[05:16:11] *** SomeKittens has joined #angularjs
[05:16:50] *** trustyhank has joined #angularjs
[05:17:03] *** SoulBlade has joined #angularjs
[05:17:04] *** kreiggers has quit IRC
[05:17:09] *** whunt has joined #angularjs
[05:17:17] *** AviMarcus has joined #angularjs
[05:17:36] <snurfery> I had a binary image, btoa()'ed it to base64 so I could do some magical stuff to crop it and render part of it on a html5 canvas, then later atob()'d it back into binary format for upload
[05:18:16] <ivanovjaroslaw> sacho_: oh, I missing your plunker... and I analyzed, that you just remove refresh() in controller, yeh? but again in your plunker http://plnkr.co/edit/LyY0Vi7K6lgqiU2xXTb9?p=preview messages don't shown. but when I use controller without directive messages are shown - http://plnkr.co/edit/svaRuPz6qgvs2bKM9tIa?p=preview
[05:18:20] <sacho_> wafflej0ck, it was only a hypothetical - of course, uri encoding is probably better
[05:18:25] *** reported has quit IRC
[05:19:41] <wafflej0ck> snurfery: fancy
[05:20:10] <wafflej0ck> time for some video gaming
[05:21:09] *** alinou has quit IRC
[05:21:17] *** SoulBlade has quit IRC
[05:21:34] *** deanclkclk has quit IRC
[05:21:46] <snurfery> looks like this: http://i.imgur.com/itMSLaw.png
[05:21:59] *** kreiggers has joined #angularjs
[05:22:11] <snurfery> it's so you can take a pdf product catalog and crop out product images from it
[05:22:19] <wafflej0ck> nice
[05:22:31] *** gordroidJS has quit IRC
[05:22:43] <wafflej0ck> how'd you do the object handles?
[05:22:49] *** travm has quit IRC
[05:23:01] <snurfery> some angular jcrop directive
[05:23:27] *** Yahkob has quit IRC
[05:23:30] <wafflej0ck> yeah that's always more of a pain than you imagine at first, good to have it taken care of
[05:23:40] *** cam_y has joined #angularjs
[05:23:55] <snurfery> yeah I wrestled with it for a few days, it wasn't a fully developed library
[05:25:11] <sacho_> ivanovjaroslaw, ack, I think that's a stupid problem I should have spotted earlier
[05:25:16] <snurfery> ugh those scrollbars are ugly
[05:25:44] *** mary5030_ has joined #angularjs
[05:26:19] *** ProLoser has joined #angularjs
[05:28:23] *** DLSteve has quit IRC
[05:30:28] <sacho_> ivanovjaroslaw, hahaha.
[05:30:35] <sacho_> ivanovjaroslaw, it's controllerAs, not controllerAs.
[05:30:40] *** esk4nd4r has joined #angularjs
[05:30:43] <sacho_> controlller*
[05:30:49] *** nycdevgirl has joined #angularjs
[05:31:16] <snurfery> controlololol
[05:31:20] <sacho_> ivanovjaroslaw, http://plnkr.co/edit/CPxD84TzbNkjPoHzLbrd?p=preview
[05:31:21] *** pikapp has joined #angularjs
[05:31:26] *** nesquerra has joined #angularjs
[05:31:32] <sacho_> that was a good 20 minutes of staring at nothing
[05:31:59] *** Weezey has quit IRC
[05:32:00] <crunch-choco> when i have a list of objects written in blob, and i want them all to be in string type, is there a good way to proceed?
[05:32:01] <nycdevgirl> im trying to update $scope.message with a message returned from an ajax request, but i cant get it to update in the view....any suggestions?? just starting out with angular
[05:32:23] <crunch-choco> in blob type*
[05:32:28] *** kreiggers has quit IRC
[05:32:32] <sacho_> nycdevgirl, try making a plunker demonstrating your problem
[05:32:39] <snurfery> nycdevgirl: can we see a gist of your code?
[05:32:50] *** pikapp has quit IRC
[05:33:02] *** Weezey has joined #angularjs
[05:33:15] <ivanovjaroslaw> sacho_: oh my god... 3 L ... thank you very much!!! you save me :)) good luck to you!
[05:33:43] *** mven has quit IRC
[05:33:56] <nycdevgirl> one sec
[05:33:59] *** kreiggers has joined #angularjs
[05:34:39] *** jasonp has quit IRC
[05:34:58] *** comboy has joined #angularjs
[05:36:52] *** kreiggers has quit IRC
[05:36:53] *** bayousoft has quit IRC
[05:37:03] <nycdevgirl> https://gist.github.com/etrom/ec1d19c0135b58aa7d13
[05:37:07] <nycdevgirl> is that good?
[05:37:09] *** WeezeyD has joined #angularjs
[05:37:46] <snurfery> sure
[05:37:52] <snurfery> are you seeing anything logged?
[05:38:00] <snurfery> from your console.log(data)
[05:38:06] *** whunt has quit IRC
[05:38:22] *** mmealling has quit IRC
[05:38:24] <nesquerra> nycdevgirl: and your url is correct?
[05:38:43] <nycdevgirl> yesArray[1]0: Object__v: 0_id: "54599e5c83acde87e9771be4"email: "test at test dot com"hashedPassword: "99aMeSpl7HldMxyikN1l4PsV/ce811F5Mc3RQ/EET+EbaeCx5edaLdg3ZG8730muRSxSlkLmYCqMY3gncbKiWw=="name: "Test User"provider: "local"role: "user"salt: "dIc1h/LKkE6sGq0Lmx/ROg=="__proto__: Objectlength: 1__proto__: Array[0]
[05:38:55] <nycdevgirl> a bit messy, thats my console log
[05:38:57] <snurfery> heh
[05:38:59] *** ryancole has quit IRC
[05:39:07] <nycdevgirl> url is good
[05:39:16] <snurfery> notice on line 10
[05:39:24] *** Weezey has quit IRC
[05:39:27] *** comboy has quit IRC
[05:39:34] <snurfery> you already assigned to scope.message on line 7, but then you're overwriting it on line 10
[05:40:01] <nycdevgirl> yeah i thought it had to be like var message
[05:40:01] <snurfery> and I don't think 'data.message' exists, given the log you just pasted
[05:40:03] <nycdevgirl> or something
[05:40:03] *** josh-k_ has quit IRC
[05:40:09] *** glosoli has joined #angularjs
[05:40:14] <snurfery> comment out line 10 and see what happens
[05:40:27] <nycdevgirl> it would if no user is found
[05:40:28] *** travm has joined #angularjs
[05:40:29] *** dcherman has joined #angularjs
[05:40:35] *** josh-k has joined #angularjs
[05:40:49] <snurfery> then you need to do an if (data[0].email) {... } else { .... }
[05:41:36] *** kp666 has joined #angularjs
[05:42:26] *** lite_ has joined #angularjs
[05:42:32] <nycdevgirl> still didnt update
[05:43:05] *** KernelCurry has quit IRC
[05:43:09] *** dcherman2 has quit IRC
[05:43:15] *** rtpg has joined #angularjs
[05:44:11] *** sahilsk1 has joined #angularjs
[05:44:41] <nycdevgirl> snurfery: woo i got it with the if else thank you!!!
[05:44:48] *** sahilsk1 has left #angularjs
[05:44:52] <snurfery> np
[05:44:57] <snurfery> btw while you're here
[05:44:58] *** josh-k has quit IRC
[05:45:05] <snurfery> this'll save you some headaches
[05:45:15] <nycdevgirl> yesss
[05:45:18] <snurfery> "ng-model should always contain a dot"
[05:45:24] *** cam_y has quit IRC
[05:45:24] *** sahilsk has quit IRC
[05:45:25] *** draconis-chomp has quit IRC
[05:45:45] <snurfery> lemme give you a link for some background
[05:46:49] <nycdevgirl> yea i just saw that recently but i didn't know what it meant
[05:46:54] *** lite_ has quit IRC
[05:46:57] *** wd40s has quit IRC
[05:47:39] *** dcherman2 has joined #angularjs
[05:48:01] *** rtpg has quit IRC
[05:48:12] <deweydb> wafflej0ck: do you think it might be because i never use ui-sref and only use state.go() ?
[05:48:32] *** rtpg has joined #angularjs
[05:48:46] <snurfery> sorry still looking for it
[05:49:09] <wafflej0ck> deweydb: don't think it matters actually
[05:49:22] <deweydb> crap
[05:49:25] <snurfery> nycdevgirl https://www.youtube.com/watch?v=ZhfUv0spHCY#t=1756
[05:49:26] <wafflej0ck> deweydb: pretty sure when it changes the url it should be updating the browser history
[05:49:30] <snurfery> watch for about 5 min
[05:49:39] <snurfery> esp when he starts talking about "dots"
[05:49:42] <ivanovjaroslaw> Hello! When I try to check $valid of the input, it is true. I use $scope.pageSize to setup value in the input. I use min="1" max="50" on input. But when I check input.$valid - $('.per_page_form input').val() is undefined. But I want to get not undefined cause I setup scope for input and it should show not undefined, is not?
[05:49:47] <ivanovjaroslaw> http://plnkr.co/edit/rEGgHZ6ZBhi95PfY2uEL?p=preview
[05:49:48] <deweydb> the browser keeps the history, when i pretty back the url changes, it just doesn't trigger a state change
[05:49:50] <deweydb> and only some times
[05:49:57] <deweydb> some times it does trigger a state change
[05:50:04] <deweydb> some times it doesn't
[05:50:07] *** mjs2600 has joined #angularjs
[05:50:43] *** dcherman has quit IRC
[05:50:51] <nycdevgirl> snurfery: cool thanks, im guessing you put it at that time
[05:50:59] <snurfery> yeah
[05:51:27] <snurfery> it's a great video to watch all the way through, but at 31:15 he starts talking about ng-model and the whole dot thing
[05:51:55] *** danflies has quit IRC
[05:52:38] <deweydb> wafflej0ck: ok, it gets weirder, i know when it happens now.
[05:52:44] *** martianboy has joined #angularjs
[05:53:03] <deweydb> wafflej0ck: when i refresh, and i change states a couple times, say three times, i can press back 2 times, the third time it doesn't change state back to the first page.
[05:53:07] *** crunch-choco has quit IRC
[05:53:16] <deweydb> so its losing like 1 state of history somehow
[05:54:51] <ProLoser> yay unibot still works!
[05:55:21] *** D9 has quit IRC
[05:55:26] <nycdevgirl> snurfery: cool thank you!
[05:55:35] *** AviMarcus has quit IRC
[05:55:45] <snurfery> np, good luck
[05:56:48] *** carbonpile has joined #angularjs
[05:57:10] <snurfery> I'm damn grateful for this channel. idling in here just passively injects knowledge into my little brain
[05:57:11] *** patricka_ has quit IRC
[05:57:14] <snurfery> heh
[05:58:08] *** WeezeyD has quit IRC
[05:58:29] *** crunch-choco has joined #angularjs
[05:58:53] *** danflies has joined #angularjs
[05:58:53] *** crunch-choco is now known as Guest30718
[05:59:33] *** Weezey has joined #angularjs
[06:00:10] *** ccohn has joined #angularjs
[06:01:30] *** goodenough has quit IRC
[06:01:35] <nycdevgirl> anyone know what irc server this is?
[06:01:42] <themime> freenode
[06:01:46] *** danflies has quit IRC
[06:01:56] *** d10n-work has quit IRC
[06:02:13] <themime> how are you connected? there might be a server or status tab with more info
[06:02:21] <snurfery> irc.freenode.net
[06:02:31] <nycdevgirl> ty
[06:02:36] *** varx has quit IRC
[06:03:10] *** travm has quit IRC
[06:03:55] <nycdevgirl> how do you connect with a irc app?
[06:03:59] *** jasonp has joined #angularjs
[06:04:46] *** whitebook has joined #angularjs
[06:05:07] *** ccohn has quit IRC
[06:05:31] <sacho_> usually an irc app would ask for the server name(irc.freenode.net) and a port(freenode uses the default one,6667, and probably others as well)
[06:05:55] *** grantfunke_ has quit IRC
[06:06:27] <nycdevgirl> i guess teh app i am trying to use is messed up
[06:06:33] <nycdevgirl> it keeps asking for me to enter a pw
[06:06:43] *** mary5030_ has quit IRC
[06:07:39] *** glosoli has quit IRC
[06:07:42] *** jasonp has quit IRC
[06:08:17] *** cam_y has joined #angularjs
[06:08:48] *** mjs2600 has quit IRC
[06:08:50] *** AngularUI has joined #angularjs
[06:08:51] <AngularUI> [ng-grid] PaulL1 pushed 1 new commit to fix-tests-1.3.0: http://git.io/dpQaqg
[06:08:51] <AngularUI> ng-grid/fix-tests-1.3.0 675b5e6 Paul Lambert: Sample ng-show
[06:08:51] *** AngularUI has left #angularjs
[06:09:04] <snurfery> which app?
[06:09:07] *** whitebook has quit IRC
[06:10:05] *** MaxV has joined #angularjs
[06:10:22] <nycdevgirl> jabbreto
[06:10:26] <snurfery> I use 'colloquy 2' for mac, it's not bad
[06:10:55] <snurfery> oh cool, that looks pretty nice actually
[06:10:56] *** rburns has quit IRC
[06:11:17] *** tkimmel has joined #angularjs
[06:11:25] <snurfery> oh wait
[06:11:39] *** rburns has joined #angularjs
[06:12:31] *** nycdevgirl_ has joined #angularjs
[06:12:33] *** asher^ has quit IRC
[06:12:34] *** Weezey has quit IRC
[06:12:42] *** nycdevgirl has quit IRC
[06:12:42] *** nycdevgirl_ is now known as nycdevgirl
[06:12:46] *** Weezey has joined #angularjs
[06:13:13] <nycdevgirl> snurfery: thanks
[06:13:14] <snurfery> is that a real IRC client? it says it's for the 'JabbR' chat protocol
[06:13:22] <nycdevgirl> yeah
[06:13:30] <nycdevgirl> just switched to the one you said
[06:13:33] <snurfery> kewl
[06:13:56] *** oktapodi has quit IRC
[06:14:07] *** oktapodi has joined #angularjs
[06:14:13] *** dejanr has quit IRC
[06:14:23] *** MaxV has quit IRC
[06:14:47] *** hekep2 has joined #angularjs
[06:15:06] *** narutimateum has joined #angularjs
[06:15:29] *** mogaj has joined #angularjs
[06:15:32] *** hekep has quit IRC
[06:16:01] *** tkimmel has quit IRC
[06:16:28] *** narutimateum2 has quit IRC
[06:20:18] *** blackjid_ has quit IRC
[06:21:49] *** scythe__ has quit IRC
[06:21:51] *** frkout has quit IRC
[06:21:51] *** matthoiland has joined #angularjs
[06:22:11] *** goodenough has joined #angularjs
[06:22:17] *** frkout has joined #angularjs
[06:22:20] *** marshall_ has joined #angularjs
[06:23:02] *** blackjid_ has joined #angularjs
[06:23:26] *** ahmetkapikiran has quit IRC
[06:23:52] *** reported has joined #angularjs
[06:24:14] *** goodenough has quit IRC
[06:25:52] <themime> i used to use irc but now im using irccloud. its so nice to click a link in my browser and be connected
[06:25:56] <themime> used to use mirc*
[06:26:07] *** matthoiland has quit IRC
[06:26:25] *** alexw has joined #angularjs
[06:26:43] *** nathanic has quit IRC
[06:26:47] *** alexw has quit IRC
[06:26:51] *** ahmetkapikiran has joined #angularjs
[06:26:57] <Logicgate> themime, I use mIRC. I love it.
[06:27:12] *** ahmetkapikiran has quit IRC
[06:27:15] *** phuh has quit IRC
[06:27:37] <themime> it lags on my computer for some reason. i actually have a paid key, i used it for yeaaaars. and before the key i had it pirated haha. its just more than i need now i guess
[06:27:42] *** phuh has joined #angularjs
[06:27:56] *** ivanovjaroslaw has quit IRC
[06:28:28] *** cam_y has quit IRC
[06:28:43] *** nathanic has joined #angularjs
[06:28:44] *** Cache_Money has quit IRC
[06:28:51] <themime> i still consider it my main client i guess. irccloud is on a test run but im really liking it so far
[06:29:31] *** soee has quit IRC
[06:32:13] *** reported has quit IRC
[06:33:50] *** tskaggs has joined #angularjs
[06:34:52] *** gunn has joined #angularjs
[06:34:59] *** Evoratec has joined #angularjs
[06:35:10] *** Guest30718 has quit IRC
[06:35:31] *** Aliks has joined #angularjs
[06:35:36] *** sinequanon has joined #angularjs
[06:36:09] *** nycdevgirl has quit IRC
[06:36:19] *** jrvlima has joined #angularjs
[06:37:00] *** hell_razer has joined #angularjs
[06:37:34] *** shredjs has quit IRC
[06:37:40] *** Owner__ has joined #angularjs
[06:37:54] *** Owner__ has quit IRC
[06:39:59] *** carbonpile has quit IRC
[06:40:35] *** Owner__ has joined #angularjs
[06:40:42] *** nycdevgirl has joined #angularjs
[06:40:59] *** Owner__ is now known as Guest97258
[06:41:35] *** reported has joined #angularjs
[06:41:43] *** rburns has quit IRC
[06:41:54] *** rburns has joined #angularjs
[06:42:53] *** carbonpile has joined #angularjs
[06:43:37] *** tripu has joined #angularjs
[06:43:37] *** wd40s has joined #angularjs
[06:43:48] *** hell_razer has quit IRC
[06:44:49] *** alexw has joined #angularjs
[06:45:57] *** shampine has quit IRC
[06:47:12] *** glosoli has joined #angularjs
[06:47:34] *** shampine has joined #angularjs
[06:48:39] *** wd40s has quit IRC
[06:51:24] *** t_p has joined #angularjs
[06:52:32] *** lemur has joined #angularjs
[06:53:54] *** ankit5990 has quit IRC
[06:54:01] *** crunch-c1oco has joined #angularjs
[06:55:25] *** NormySan has joined #angularjs
[06:55:33] *** tskaggs has quit IRC
[06:58:35] *** sribabu has quit IRC
[06:59:06] *** jonathanpglick has joined #angularjs
[07:00:58] *** ccohn has joined #angularjs
[07:01:06] *** deanclkclk_ has quit IRC
[07:01:29] <SeeThruHead> weechat
[07:01:31] <SeeThruHead> all the way
[07:01:42] *** wd40s has joined #angularjs
[07:03:04] *** d4rklit3 has quit IRC
[07:03:19] *** caitp has quit IRC
[07:03:55] *** quantax has joined #angularjs
[07:04:24] *** crunch-c1oco has quit IRC
[07:04:29] *** quantax- has quit IRC
[07:04:48] *** crunch-choco has joined #angularjs
[07:05:19] *** jaydubya has quit IRC
[07:05:39] *** ccohn has quit IRC
[07:06:55] *** wd40s has quit IRC
[07:06:57] *** Skrypter has quit IRC
[07:06:58] *** junmin has joined #angularjs
[07:08:21] *** JohnBat26 has joined #angularjs
[07:08:43] *** platonic has quit IRC
[07:09:16] *** jrvlima has quit IRC
[07:09:23] *** poolside has quit IRC
[07:09:23] *** platonic has joined #angularjs
[07:09:48] *** oktapodi has quit IRC
[07:09:48] *** jrvlima has joined #angularjs
[07:09:58] *** nycdevgirl has quit IRC
[07:10:05] *** qstrahl has quit IRC
[07:10:19] *** oktapodi has joined #angularjs
[07:10:56] *** MaxV has joined #angularjs
[07:11:34] *** jrvlima has quit IRC
[07:11:58] *** rburns has quit IRC
[07:12:24] *** MaxV has quit IRC
[07:12:28] *** rburns has joined #angularjs
[07:12:44] *** niop has joined #angularjs
[07:12:46] *** MaxV has joined #angularjs
[07:13:16] *** lite_ has joined #angularjs
[07:13:37] *** dcherman2 has quit IRC
[07:13:53] *** platonic has quit IRC
[07:15:26] *** martianboy has quit IRC
[07:15:52] *** reported has quit IRC
[07:16:27] <Inge-> irssi + screen
[07:16:42] *** tomzx is now known as tomzx`afk
[07:17:02] *** Raging_Hog has joined #angularjs
[07:17:24] *** MaxV has quit IRC
[07:17:48] *** SoulBlade has joined #angularjs
[07:18:20] *** jonathanpglick has quit IRC
[07:18:24] *** dreambox has joined #angularjs
[07:18:54] *** oktapodi has quit IRC
[07:19:04] *** oktapodi has joined #angularjs
[07:20:40] *** poolside has joined #angularjs
[07:21:41] *** pingupingu has quit IRC
[07:21:53] *** SoulBlade has quit IRC
[07:22:13] *** edy has joined #angularjs
[07:22:50] *** NormySan has quit IRC
[07:22:54] *** dharmit has joined #angularjs
[07:23:07] *** dreambox has quit IRC
[07:23:26] *** martianboy has joined #angularjs
[07:23:43] *** {DV8} has quit IRC
[07:24:53] *** cacts has quit IRC
[07:25:29] <glaksmono> anyone is here?
[07:26:12] *** jstroem has joined #angularjs
[07:26:37] *** alexw has quit IRC
[07:27:17] *** phuh has quit IRC
[07:27:29] *** yelvert has joined #angularjs
[07:27:42] *** phuh has joined #angularjs
[07:28:55] *** gunn has quit IRC
[07:31:11] *** alexw has joined #angularjs
[07:31:56] *** gunn has joined #angularjs
[07:32:14] *** whunt has joined #angularjs
[07:32:29] *** jmverges has joined #angularjs
[07:32:34] <themime> glaksmono: generally better to just ask your question
[07:33:03] *** Leon has joined #angularjs
[07:33:16] *** carlosmantilla has joined #angularjs
[07:36:05] *** mruzekw has joined #angularjs
[07:36:25] *** sigurding has joined #angularjs
[07:36:59] *** hirst has joined #angularjs
[07:37:31] *** niop has quit IRC
[07:38:12] *** jstroem has quit IRC
[07:38:45] *** jstroem has joined #angularjs
[07:38:52] *** esk4nd4r has quit IRC
[07:39:51] *** Jdubs has quit IRC
[07:39:57] *** alexw has quit IRC
[07:40:20] *** Weezey has quit IRC
[07:40:20] *** macobo has joined #angularjs
[07:40:50] *** wiherek has joined #angularjs
[07:40:53] *** Weezey has joined #angularjs
[07:40:53] <wiherek> hi
[07:41:19] *** nesquerra has left #angularjs
[07:41:20] <wiherek> i wanted to ask about working with large collections of data
[07:41:24] *** nesquerra has joined #angularjs
[07:41:27] <nesquerra> hello
[07:41:38] <wiherek> say we have 2000 objects that we want to sort
[07:41:41] <wiherek> client side
[07:42:14] <wiherek> the objects consist of a picture, a name, a link, a method
[07:42:48] <wiherek> would it be enough to build the collection using ng-repeat
[07:42:59] <wiherek> and just bind once with ::
[07:43:12] *** Sontakey has joined #angularjs
[07:43:19] *** jstroem has quit IRC
[07:43:30] <wiherek> the ng repeat directive will be using animations
[07:43:44] <wiherek> i need it to be smooth
[07:44:05] <nesquerra> you need to show all 2000 in one request?
[07:44:09] <nesquerra> on 1 page?
[07:44:13] <wiherek> yea i know right
[07:44:15] *** Weezey has quit IRC
[07:44:22] <wiherek> no, I only need to show 20 of them at a time
[07:44:24] *** carbonpile has quit IRC
[07:44:34] <wiherek> but I need to have them all
[07:44:35] *** Weezey has joined #angularjs
[07:45:06] <nesquerra> so... the request to the server is just going to spit back 2000 of these object unordered?
[07:45:13] <nesquerra> objects
[07:45:19] <wiherek> yes because the order is managed client side
[07:45:38] <wiherek> like the first 20 will be cached and returned in order
[07:46:05] <wiherek> but that’s like a stub object, to be shown while the rest is being sorted and prepared for display
[07:46:05] <nesquerra> you make just 1 request to get all the objects?
[07:46:19] <wiherek> in this single specific request, yes.
[07:46:21] *** mruzekw has quit IRC
[07:46:24] <nesquerra> kk
[07:46:24] *** hiptobecubic has quit IRC
[07:47:13] <nesquerra> what do you need to sort by?
[07:47:47] <wiherek> custom attributes, build on client side
[07:47:51] <nesquerra> actually, that probably doesn't matter since it could be any of the 3
[07:47:52] <nesquerra> nm
[07:48:14] <nesquerra> so are you just wondering how to build the set then output it using ng-repeat?
[07:48:24] *** platonic has joined #angularjs
[07:48:29] <nesquerra> or do these objects needs to have some type of click event associated with them?
[07:48:39] <wiherek> they have a click event
[07:48:50] <wiherek> i wonder if i should use ng repeat… or angular at all
[07:48:56] *** threesixes has quit IRC
[07:49:04] <nesquerra> to do sorting and click handling?
[07:49:24] <wiherek> perhaps angular is too slow for that i dont know
[07:49:34] <wiherek> i have a feeling that if i set listeners
[07:49:41] <nesquerra> sorting 2000 objects isn't so bad
[07:49:43] <wiherek> it will start to operate slow
[07:50:03] <wiherek> then rendering them
[07:50:04] *** esk4nd4r has joined #angularjs
[07:50:13] <wiherek> in batches of 10 - 20
[07:50:14] <nesquerra> does each object have it's own custom click handler that would need to run?
[07:50:35] <wiherek> but still it needs to be fast :)
[07:50:36] *** jstroem has joined #angularjs
[07:50:38] <nesquerra> or is it some generic click event that only needs the object's id or something
[07:50:41] <nesquerra> ?
[07:50:48] <nesquerra> everything needs to be fast all the time :p
[07:51:14] <wiherek> nesquerre the function will take it’s id
[07:51:29] *** oktapodi has quit IRC
[07:51:35] *** evilaliv3 has joined #angularjs
[07:51:57] *** Weezey has quit IRC
[07:52:01] <nesquerra> I mean ng-click would work there when you're rendering the list via ng-repeat
[07:52:27] <nesquerra> and you could attach an animation fairly easily to the ng-repeat directive
[07:52:42] <nesquerra> like fading in each item 1 at a time and such
[07:53:06] *** Jdubs has joined #angularjs
[07:53:07] <wiherek> yea it can be done… but maybe i shouldn’t use angularjs views
[07:53:08] <nesquerra> sorting you could potentially use a filter to do that
[07:53:20] <wiherek> yea, but filters are slow :)
[07:53:20] *** gurke_ has joined #angularjs
[07:53:35] *** Sontakey1 has joined #angularjs
[07:53:43] <wiherek> well, what are the alternatives?
[07:53:44] <nesquerra> you could always sort them using plain JS
[07:54:02] <wiherek> or maybe reactjs?
[07:54:02] <nesquerra> any number of sorting algorithms could work I imagine
[07:54:08] *** Weezey has joined #angularjs
[07:54:25] <nesquerra> soooo, if I understand the problem... you want to do this
[07:54:43] <nesquerra> take 2000 objects, sort them, output them using some animation
[07:54:47] <wiherek> now about the problem of the list items not blinking on new sort
[07:54:49] *** jstroem has quit IRC
[07:55:03] <wiherek> yea, but then, i dont want to reload the whole list
[07:55:07] <wiherek> that’s the whole thing.
[07:55:16] <wiherek> if an object is on pos 3
[07:55:24] <wiherek> then the sorting happens
[07:55:26] <wiherek> like a new sort
[07:55:31] <wiherek> then its on pos 8
[07:55:52] *** comboy has joined #angularjs
[07:56:00] <wiherek> it should not fade out / in, it should move in some way (dont worry about how), you know, the html should not be removed
[07:56:04] *** Sontakey has quit IRC
[07:56:14] <wiherek> ng repeat can do that I think
[07:56:21] *** oktapodi has joined #angularjs
[07:56:28] <wiherek> or it just works that way with the animations
[07:56:56] <gurke_> good morning.
[07:56:57] <nesquerra> ok
[07:57:01] <nesquerra> so somehting like this?
[07:57:02] <nesquerra> http://jsbin.com/exevom/1/#/
[07:57:10] *** jstroem has joined #angularjs
[07:59:27] *** caitp has joined #angularjs
[07:59:31] *** charuru has quit IRC
[07:59:39] *** platonic has quit IRC
[08:00:05] *** poolside has quit IRC
[08:00:06] *** tkimmel has joined #angularjs
[08:00:10] *** Johan has joined #angularjs
[08:00:20] *** Sontakey1 has quit IRC
[08:00:25] *** comboy has quit IRC
[08:00:51] *** lite_ has quit IRC
[08:00:55] *** gunn has quit IRC
[08:01:04] *** Versuchen_ has quit IRC
[08:01:13] *** lite_ has joined #angularjs
[08:01:45] *** ccohn has joined #angularjs
[08:02:01] *** gunn has joined #angularjs
[08:02:11] *** gunn has quit IRC
[08:02:26] *** wd40s has joined #angularjs
[08:02:50] *** gunn has joined #angularjs
[08:03:22] *** devinandrews has quit IRC
[08:03:39] *** Click66 has joined #angularjs
[08:04:02] *** caitp has quit IRC
[08:04:19] <wiherek> yes! :)
[08:04:29] *** Sky[x] has joined #angularjs
[08:04:30] <wiherek> but with 2K + elements
[08:04:33] *** tkimmel has quit IRC
[08:04:36] <wiherek> and images
[08:04:48] <wiherek> and only show 8 of them :D
[08:06:08] *** SeeThruHead has quit IRC
[08:06:31] *** VeeWee has joined #angularjs
[08:06:38] *** ccohn has quit IRC
[08:06:39] <nesquerra> hmmmmm
[08:06:45] *** thomastuts has joined #angularjs
[08:07:02] *** Guest97258 has quit IRC
[08:07:13] <nesquerra> are new objects going to be added ever?
[08:07:22] <nesquerra> or is it just the same 2k+ always?
[08:08:00] *** wd40s has quit IRC
[08:08:26] *** dannyc has joined #angularjs
[08:08:36] <wiherek> not sure
[08:08:39] <wiherek> perhaps.
[08:09:27] *** gunn has quit IRC
[08:09:28] <nesquerra> if so, then you could potentially have to sort all the time as new elements come into play
[08:09:43] <nesquerra> and depending on how frequently that is... could slow things down
[08:10:08] *** dreambox has joined #angularjs
[08:10:19] <nesquerra> however
[08:10:39] *** discgo has quit IRC
[08:10:46] *** matthoiland has joined #angularjs
[08:11:02] <nesquerra> I think you could partition the sorted set
[08:11:17] *** ggrzybek has joined #angularjs
[08:11:53] *** gunn has joined #angularjs
[08:13:01] *** dannyc has quit IRC
[08:13:01] *** rburns has quit IRC
[08:13:24] *** MaxV has joined #angularjs
[08:13:26] *** soee has joined #angularjs
[08:13:37] *** rburns has joined #angularjs
[08:14:28] <soee> good morning
[08:14:33] *** AndreasLutro has joined #angularjs
[08:14:35] <nesquerra> I'd recommend just getting the objects, load them into memory and apply a few different sorting algorithms to see which one's the fastest.
[08:14:41] *** Weezey has quit IRC
[08:14:42] *** SomeKittens has quit IRC
[08:14:52] *** MrBaboon has joined #angularjs
[08:14:53] <nesquerra> don't need angular or anything fancy yet
[08:14:58] *** Weezey has joined #angularjs
[08:15:03] <nesquerra> just find a sort that'll work decently for your data set
[08:15:17] *** matthoiland has quit IRC
[08:16:17] *** slopjong has joined #angularjs
[08:16:34] *** Owner__ has joined #angularjs
[08:16:57] *** Owner__ is now known as Guest69634
[08:18:03] *** rhp has quit IRC
[08:18:07] *** MaxV has quit IRC
[08:18:46] *** eihabarabia has joined #angularjs
[08:18:50] *** one0one has quit IRC
[08:19:15] *** eihabarabia has left #angularjs
[08:19:17] *** dnull has quit IRC
[08:19:43] *** Una has quit IRC
[08:20:03] *** cornerma1 has joined #angularjs
[08:20:37] *** junmin has quit IRC
[08:20:39] *** metasansana has quit IRC
[08:21:22] *** gunn has quit IRC
[08:21:25] *** emmesswhy has quit IRC
[08:22:56] *** gunn has joined #angularjs
[08:23:27] *** cornerman has quit IRC
[08:23:30] *** cornerma1 is now known as cornerman
[08:24:22] *** eihabarabia has joined #angularjs
[08:26:03] *** carbonpile has joined #angularjs
[08:26:12] *** alexw has joined #angularjs
[08:26:43] *** Raging_Hog has quit IRC
[08:27:17] *** phuh has quit IRC
[08:27:42] *** lexek_ has joined #angularjs
[08:27:46] *** phuh has joined #angularjs
[08:28:16] *** gunn has quit IRC
[08:28:44] *** sheplu has quit IRC
[08:29:11] *** Aliks has quit IRC
[08:29:13] *** thomastuts has quit IRC
[08:29:48] *** Aliks has joined #angularjs
[08:29:56] *** gunn has joined #angularjs
[08:30:32] *** slopjong has quit IRC
[08:30:54] *** Gourav has joined #angularjs
[08:31:31] <Gourav> hii
[08:31:36] <dsdeiz> hey all. say my main app module has constants. how do i use 'em on the controllers?
[08:31:43] *** TweedleDee has quit IRC
[08:32:07] *** TweedleDee has joined #angularjs
[08:32:36] *** jstroem has quit IRC
[08:32:42] *** DoubleAW has quit IRC
[08:32:46] *** doginal has quit IRC
[08:32:49] <Gourav> Hiiiiii
[08:33:07] *** DoubleAW has joined #angularjs
[08:33:34] *** BahamutWC|Laptop has quit IRC
[08:34:23] *** Aliks has quit IRC
[08:34:24] *** gunn has quit IRC
[08:34:50] <dsdeiz> i get unknown provider AUTH_EVENTS when i have .config(['$routeProvider', 'AUTH_EVENTS', function ($routeProvider, AUTH_EVENTS) { ... } )] in my controller
[08:34:50] *** martianboy has quit IRC
[08:35:04] *** edy has quit IRC
[08:35:15] *** foofoobar has joined #angularjs
[08:35:17] <dsdeiz> AUTH_EVENTS is defined under angular.module('AppModule').constant('AUTH_EVENTS', { ... } );
[08:35:58] *** edy has joined #angularjs
[08:36:28] *** gunn has joined #angularjs
[08:36:42] *** doginal has joined #angularjs
[08:37:27] *** Marble68_ has joined #angularjs
[08:37:57] *** bolloga has joined #angularjs
[08:38:35] <deebo> is it possible to delay binding of directives until something i specify happens? my problem currently is that i bind watchers to the scope, and the scope is initially loaded via ajax, so i get one unnecessary change when the ajax result is bound to the scope
[08:38:40] *** Marble68 has quit IRC
[08:38:40] *** Marble68_ is now known as Marble68
[08:39:16] *** martianboy has joined #angularjs
[08:39:19] *** tech2 has joined #angularjs
[08:39:47] *** Aliks has joined #angularjs
[08:39:50] *** TweedleDee has quit IRC
[08:40:00] *** zbzzn has joined #angularjs
[08:40:19] *** HelperW has joined #angularjs
[08:40:23] *** slopjong has joined #angularjs
[08:40:30] *** edy has quit IRC
[08:40:30] *** TweedleDee has joined #angularjs
[08:43:17] *** bolloga has quit IRC
[08:43:40] *** rburns has quit IRC
[08:43:53] *** rburns has joined #angularjs
[08:44:13] *** spinningarrow has joined #angularjs
[08:44:46] <spinningarrow> how do I pass an array to a directive's isolate scope without using the two-way (=) binding?
[08:45:09] *** Sjimi has joined #angularjs
[08:45:26] <spinningarrow> or is that the only way to do it?
[08:45:43] <spinningarrow> what if I don't want the directive to accidentally change the contents of the array?
[08:45:56] <dsdeiz> anyone? :D
[08:47:02] *** moafoca has joined #angularjs
[08:47:32] *** uru|away is now known as uru
[08:48:49] *** alexw has quit IRC
[08:48:49] *** whunt has quit IRC
[08:49:04] *** whunt has joined #angularjs
[08:50:16] *** Aliks has quit IRC
[08:50:50] *** Aliks has joined #angularjs
[08:52:43] *** rosieres has joined #angularjs
[08:53:32] <dsdeiz> i'm basically looking at https://medium.com/opinionated-angularjs/techniques-for-authentication-in-angularjs-applications-7bbf0346acec and not sure where to define those AUTH_EVENTS and USER_ROLES constants
[08:53:55] *** jaydubya has joined #angularjs
[08:54:58] *** tarnus has quit IRC
[08:55:31] *** Aliks has quit IRC
[08:55:35] *** mtsr has joined #angularjs
[08:55:49] *** jaznow has joined #angularjs
[08:56:02] *** Gourav has quit IRC
[08:56:39] *** jdj_dk has joined #angularjs
[08:56:54] *** jstroem has joined #angularjs
[08:58:31] *** jaydubya has quit IRC
[08:58:57] *** blomman has joined #angularjs
[08:59:00] *** whunt has quit IRC
[08:59:03] *** lw_ has joined #angularjs
[09:00:21] *** platonic has joined #angularjs
[09:00:38] *** Sontakey has joined #angularjs
[09:01:02] *** jstroem has quit IRC
[09:01:11] *** trustyhank has quit IRC
[09:01:29] *** jstroem has joined #angularjs
[09:01:48] *** lw has quit IRC
[09:02:30] *** ccohn has joined #angularjs
[09:02:46] *** mrman has joined #angularjs
[09:03:26] *** thomastuts has joined #angularjs
[09:03:38] *** jagga__ has joined #angularjs
[09:04:25] *** toin0u|away is now known as toin0u
[09:04:55] *** toin0u is now known as toin0u|away
[09:05:00] *** toin0u|away is now known as toin0u
[09:05:09] *** platonic has quit IRC
[09:05:10] *** toin0u is now known as toin0u|away
[09:05:25] *** DoubleAW has quit IRC
[09:05:39] *** jstroem has quit IRC
[09:05:40] *** phzon has joined #angularjs
[09:05:50] *** DoubleAW has joined #angularjs
[09:06:05] *** jstroem has joined #angularjs
[09:06:10] *** toin0u|away is now known as toin0u
[09:06:21] *** toin0u has joined #angularjs
[09:06:40] *** mchammer has joined #angularjs
[09:06:57] *** ccohn has quit IRC
[09:07:10] *** edy has joined #angularjs
[09:07:36] *** MaxV has joined #angularjs
[09:08:02] *** Kay-z has joined #angularjs
[09:08:08] *** pdillinger has joined #angularjs
[09:08:20] *** toin0u is now known as toin0u|away
[09:09:03] *** fbenoit has joined #angularjs
[09:09:10] *** toin0u|away is now known as toin0u
[09:09:13] <mrman> Any ideas how to debug a "require: '^directive'"-issue? I can access the controller doing $scope.$parent.$parent.$parent, so I want to just require ^directive instead of hard coding to the parents. In my link function the required directive is undefined. Have not been able to reproduce a minimal example, so ideas for debugging is appreciated :)
[09:09:49] *** phzon has quit IRC
[09:09:57] *** Sontakey has quit IRC
[09:10:26] *** CodeFriar has quit IRC
[09:10:50] <sacho_> does the required directive have a controller?
[09:10:57] *** dejanr has joined #angularjs
[09:11:54] *** MaxV has quit IRC
[09:12:08] <setec> someone was asking about how to render angular on server side, so i'released a proof-of-concept here, which basically shows possibility of using angular within jsdom DOM space
[09:12:08] <thomastuts> morning everyone
[09:12:21] <setec> npm jsdom-sync
[09:12:25] <mrman> yes it does. I have exposed an API in there that I want to access
[09:13:02] *** kas84 has joined #angularjs
[09:13:13] *** kas84 has left #angularjs
[09:13:44] *** dreambox has quit IRC
[09:15:02] *** mupkoo has joined #angularjs
[09:15:03] *** jgladwill has joined #angularjs
[09:15:03] *** jgladwill has joined #angularjs
[09:15:08] *** TheAceOfHearts has joined #angularjs
[09:15:28] *** dejanr has quit IRC
[09:15:29] *** mchapman has quit IRC
[09:16:24] *** calmbird has joined #angularjs
[09:16:25] *** categoryzero has joined #angularjs
[09:17:54] <Sjimi> Goodmorning everyone.
[09:18:49] *** SoulBlade has joined #angularjs
[09:19:14] *** Grokling_ has joined #angularjs
[09:19:21] *** Hackwar has quit IRC
[09:20:09] *** jacuqesdancona has joined #angularjs
[09:21:00] *** Weezey has quit IRC
[09:21:01] *** saucey has joined #angularjs
[09:21:18] *** Weezey has joined #angularjs
[09:21:44] *** laurensclaessen has joined #angularjs
[09:21:46] *** caitp has joined #angularjs
[09:22:36] *** pdillinger has quit IRC
[09:22:39] *** sk87 has joined #angularjs
[09:22:47] *** klaut has joined #angularjs
[09:23:05] *** SoulBlade has quit IRC
[09:23:16] *** richiebkr has joined #angularjs
[09:23:43] *** TweedleDee has quit IRC
[09:23:56] *** TweedleDee has joined #angularjs
[09:24:32] *** sheplu has joined #angularjs
[09:24:39] *** Usuario has joined #angularjs
[09:25:10] *** Usuario is now known as obs
[09:25:53] *** Weezey has quit IRC
[09:25:54] *** Juanchito has joined #angularjs
[09:26:03] *** ProLoser has quit IRC
[09:26:19] *** Weezey has joined #angularjs
[09:26:28] *** caitp has quit IRC
[09:27:06] *** niop has joined #angularjs
[09:27:07] *** alexw has joined #angularjs
[09:27:15] *** xastey- has joined #angularjs
[09:27:18] *** phuh has quit IRC
[09:27:22] *** frankblizzar has joined #angularjs
[09:27:45] *** phuh has joined #angularjs
[09:29:13] *** mrman has quit IRC
[09:29:17] *** fbenoit has quit IRC
[09:29:28] *** mbenadda____ has joined #angularjs
[09:29:30] *** anapitupulu has quit IRC
[09:30:27] *** shaisnir has joined #angularjs
[09:30:34] *** Ajans has joined #angularjs
[09:30:36] *** ProLoser has joined #angularjs
[09:31:32] <opus_> wow what does jsdom-sync do?
[09:31:41] *** xastey has quit IRC
[09:31:59] *** phzon has joined #angularjs
[09:33:39] *** alexw has quit IRC
[09:33:39] *** edzez has quit IRC
[09:34:01] *** hirst has quit IRC
[09:34:35] <moafoca> Hellow :D
[09:34:40] *** edzez has joined #angularjs
[09:34:45] *** rashidkpc has quit IRC
[09:34:52] <setec> basically it auto-syncs server dom, rendered by whatever u want, and backs it up with server-client sync
[09:35:05] <setec> syncs DOM changes and transfers user events from browser back to server
[09:35:17] <setec> i've included and example of simple angular app
[09:35:21] <setec> *an example
[09:35:46] <setec> thats just proof-of-concept, so feel free to fork and push if u like something in it
[09:36:37] <setec> it does use MutationEvents to watch DOM changes which are ridicolously fast on node *vs browser)
[09:36:50] <setec> and it kinda emulates MutatiionObserver pattern
[09:36:58] *** krigbaum has joined #angularjs
[09:37:00] <setec> by packing changes into small batches
[09:37:02] <opus_> how do I use it on the node side?
[09:37:18] *** niop has quit IRC
[09:37:35] <setec> https://github.com/stq/jsdom-sync/blob/master/test/script.js
[09:37:38] <setec> check it
[09:37:47] *** Raging_Hog has joined #angularjs
[09:38:01] <setec> basically it starts a server and gives you window object
[09:38:09] <setec> which is similar to browser's window object
[09:38:09] *** fbenoit has joined #angularjs
[09:38:16] <setec> it have document and other stuff
[09:38:31] *** tech2 has quit IRC
[09:38:45] *** shaisnir has quit IRC
[09:38:51] *** evilaliv3 has quit IRC
[09:39:02] <opus_> but won't that just return immediately? you won't see anything right?
[09:39:06] *** shaisnir has joined #angularjs
[09:39:10] *** dannyc has joined #angularjs
[09:39:17] *** janu has joined #angularjs
[09:39:26] <setec> no, it becomes typical simples node server process
[09:39:29] *** janu has left #angularjs
[09:39:35] <setec> so u just need open browser to see it
[09:39:35] *** shaisnir has joined #angularjs
[09:39:48] <opus_> where would you browse to?
[09:39:49] *** hikumealan_ has quit IRC
[09:39:57] <saucey> hey guys
[09:40:09] <setec> https://github.com/stq/jsdom-sync/blob/master/server.js
[09:40:10] <setec> app.listen( 3334 );
[09:40:15] *** shaisnir_ has joined #angularjs
[09:40:17] <setec> so it's localhost:3334
[09:40:18] *** shaisnir has quit IRC
[09:40:19] *** ProLoser has quit IRC
[09:40:21] <saucey> how to you inject a service provider into another service provider
[09:40:41] *** numenor has quit IRC
[09:41:27] <opus_> setec, huh. interesting
[09:42:06] <opus_> so does it speed up the browser?
[09:42:16] <opus_> because all the server code is in node?
[09:42:26] *** ProLoser has joined #angularjs
[09:42:32] <opus_> I guess, all the client code is on the server, to clarify
[09:42:33] <opus_> ?
[09:42:40] *** yelvert has quit IRC
[09:42:50] *** patric100e99 has joined #angularjs
[09:42:53] *** jillesme has joined #angularjs
[09:42:55] *** shampine has quit IRC
[09:43:19] *** hikumealan_ has joined #angularjs
[09:43:32] *** dannyc has quit IRC
[09:43:59] *** wiherek has quit IRC
[09:44:14] *** rtpg has quit IRC
[09:44:36] *** nemothekid has quit IRC
[09:44:53] *** gunn has quit IRC
[09:45:36] <saucey> how to i inject two providers together ?
[09:45:46] *** ogdabou has joined #angularjs
[09:45:56] *** hell_razer has joined #angularjs
[09:47:02] *** gunn has joined #angularjs
[09:47:10] <opus_> you just do it like you would normally inject a module?
[09:47:31] <opus_> goodnight
[09:47:37] *** hell_razer has quit IRC
[09:47:42] *** patric100e99 has quit IRC
[09:48:52] <setec> opus_ i think it's just handy
[09:48:58] <setec> because you can write UI at node
[09:49:02] *** tkimmel has joined #angularjs
[09:49:16] <setec> with ecmascript6 and all node server features
[09:49:23] <setec> like instant DB access and so on
[09:49:28] <saucey> thanks i figured it out opus
[09:49:53] <setec> basically i plan to use it as platform for my desktop ui app
[09:49:58] *** rchavik has quit IRC
[09:50:03] <setec> because i disliked node-webkit
[09:50:28] *** marshall_ has quit IRC
[09:50:32] <saucey> whats the difference between ui-route an ngroute?
[09:50:36] <setec> node-webkit revamps standart node approach to much, introduces it's own node-gyp clone called nw-gyp
[09:50:37] <saucey> which is better?
[09:50:56] *** eihabarabia is now known as ehalas
[09:50:58] <saucey> what's the difference between ui-router and ngroute?
[09:51:20] *** rtpg has joined #angularjs
[09:51:34] *** wd40s has joined #angularjs
[09:53:22] <setec> ui-router is parth of angular-ui
[09:53:31] <setec> it works on concept of state-machine
[09:53:42] *** marshall_ has joined #angularjs
[09:53:49] <setec> ngroute is native routing with slightly simplier concept
[09:53:54] *** tkimmel has quit IRC
[09:54:04] *** ehalas is now known as eihabarabia
[09:54:26] <setec> ui-router is somewhat nice if u have many fixed pages with many blocks
[09:54:30] *** ozooner_ has joined #angularjs
[09:54:42] <setec> ngrouter is better if you need dynamically configure route maps and its lighter
[09:54:59] *** rchavik has joined #angularjs
[09:55:04] *** niop has joined #angularjs
[09:55:26] <setec> ui-router not just route but also works as simple view aggregator
[09:55:47] *** daoudi has joined #angularjs
[09:55:53] *** lefant has joined #angularjs
[09:56:29] *** wd40s has quit IRC
[09:58:13] *** ThomasBeauvais has joined #angularjs
[09:58:15] *** Makpoc has quit IRC
[09:58:18] *** blackjid_ has quit IRC
[09:58:26] *** dan2k3k4 has joined #angularjs
[09:59:23] *** Novacha has quit IRC
[09:59:41] *** matthoiland has joined #angularjs
[10:00:04] *** Makpoc has joined #angularjs
[10:00:41] *** tkimmel has joined #angularjs
[10:00:42] *** rchavik has quit IRC
[10:01:03] *** ProLoser has quit IRC
[10:01:26] *** zwacky has joined #angularjs
[10:01:29] *** niop has quit IRC
[10:01:39] *** rtpg has quit IRC
[10:01:46] *** munzmania has joined #angularjs
[10:01:58] *** eihabarabia has quit IRC
[10:02:00] *** voodoo1 has quit IRC
[10:02:05] *** tkimmel has quit IRC
[10:02:12] *** bolloga has joined #angularjs
[10:02:33] *** tkimmel has joined #angularjs
[10:03:07] *** ProLoser has joined #angularjs
[10:03:12] *** ccohn has joined #angularjs
[10:03:52] *** doginal has quit IRC
[10:04:33] *** tkimmel_ has joined #angularjs
[10:04:47] *** tkimmel has quit IRC
[10:05:02] *** matthoiland has quit IRC
[10:05:30] *** Novacha has joined #angularjs
[10:05:52] *** mandric has joined #angularjs
[10:06:07] *** tkimmel_ has quit IRC
[10:06:13] *** mandric has quit IRC
[10:06:31] *** tkimmel has joined #angularjs
[10:07:16] *** rchavik has joined #angularjs
[10:07:35] *** jrist has joined #angularjs
[10:08:07] *** ccohn has quit IRC
[10:08:22] *** tkimmel_ has joined #angularjs
[10:08:27] *** tkimmel has quit IRC
[10:08:59] *** t_p has quit IRC
[10:09:09] *** rtpg has joined #angularjs
[10:09:23] *** motionman has quit IRC
[10:09:48] *** tkimmel_ has quit IRC
[10:10:16] *** tkimmel has joined #angularjs
[10:10:47] *** TheAceOfHearts has quit IRC
[10:11:04] <daoudi> guys, how can i get the directive index? i have a list of directives from the same type
[10:12:02] *** tkimmel has quit IRC
[10:12:09] *** tkimmel has joined #angularjs
[10:13:24] *** sigurding has quit IRC
[10:13:36] *** tkimmel has quit IRC
[10:13:45] *** ProLoser has quit IRC
[10:14:06] *** tkimmel has joined #angularjs
[10:14:08] *** dreambox has joined #angularjs
[10:14:11] *** sigurding has joined #angularjs
[10:14:49] *** AciD`` has joined #angularjs
[10:15:33] *** tkimmel has quit IRC
[10:15:39] *** ozooner_ has quit IRC
[10:15:43] *** Hackwar has joined #angularjs
[10:15:58] *** ozooner_ has joined #angularjs
[10:16:01] *** tkimmel has joined #angularjs
[10:16:15] *** milka has joined #angularjs
[10:16:29] *** wiherek has joined #angularjs
[10:16:29] *** BahamutWC|Laptop has joined #angularjs
[10:16:41] *** deyna has joined #angularjs
[10:17:04] <deyna> morning! can someone explain how to define a module, but split its components across files
[10:17:11] *** BahamutWC|Work has quit IRC
[10:17:22] *** BahamutWC|Laptop has quit IRC
[10:17:29] <deyna> it seems to work OK, but in unit tests i get the module is not available error eventhough i do module('myModule')
[10:17:37] *** tkimmel has quit IRC
[10:17:50] *** xbajci has joined #angularjs
[10:17:54] *** tkimmel has joined #angularjs
[10:18:03] *** daoudi has quit IRC
[10:18:10] <thomastuts> deyna: post a gist of your code and your test
[10:18:22] *** dreambox has quit IRC
[10:18:52] *** BahamutWC|Laptop has joined #angularjs
[10:19:26] *** Grokling_ has quit IRC
[10:19:43] *** BahamutWC|Laptop has quit IRC
[10:19:49] *** tkimmel_ has joined #angularjs
[10:19:51] *** tkimmel has quit IRC
[10:20:24] *** arkin has joined #angularjs
[10:20:24] *** arkin has joined #angularjs
[10:20:34] *** krotscheck has quit IRC
[10:21:12] *** BahamutWC|Laptop has joined #angularjs
[10:21:16] *** carbonpile has quit IRC
[10:21:19] *** tkimmel_ has quit IRC
[10:21:23] *** ProLoser has joined #angularjs
[10:21:46] *** tkimmel has joined #angularjs
[10:21:57] *** MaxV has joined #angularjs
[10:22:04] *** BahamutWC|Laptop has quit IRC
[10:22:33] *** AngularUI has joined #angularjs
[10:22:33] <AngularUI> [bootstrap] chrisirhc pushed 1 new commit to master: http://git.io/KeEmIA
[10:22:33] <AngularUI> bootstrap/master e10d561 Chris Chua: fix(tooltip): evaluate appendToBody on init...
[10:22:33] *** AngularUI has left #angularjs
[10:23:16] *** krotscheck has joined #angularjs
[10:23:20] *** tkimmel has quit IRC
[10:23:45] *** tkimmel has joined #angularjs
[10:23:52] *** Sebastien-L has joined #angularjs
[10:23:53] *** darrin has joined #angularjs
[10:23:58] *** MaxV has quit IRC
[10:24:21] *** BahamutWC|Work has joined #angularjs
[10:25:01] *** calmbird has quit IRC
[10:25:37] *** tkimmel_ has joined #angularjs
[10:25:41] *** tkimmel has quit IRC
[10:25:45] *** sinequanon has quit IRC
[10:26:08] *** juampy has joined #angularjs
[10:26:24] *** greengriminal has quit IRC
[10:26:42] *** rburns_ has joined #angularjs
[10:26:45] <setec> daoudi you can check if directive was loaded
[10:27:12] *** tkimmel_ has quit IRC
[10:27:18] *** BahamutWC|Laptop has joined #angularjs
[10:27:18] <setec> for that check $injector for directive object by name (name of directive in injector is (directiveName + 'Directive))
[10:27:19] *** phuh has quit IRC
[10:27:30] *** tkimmel has joined #angularjs
[10:27:34] *** ThomasBeauvais has quit IRC
[10:27:47] *** phuh has joined #angularjs
[10:27:51] *** AngularUI has joined #angularjs
[10:27:51] <AngularUI> [bootstrap] chrisirhc pushed 1 new commit to master: http://git.io/Hqdo-A
[10:27:51] <AngularUI> bootstrap/master 8204c80 Chris Chua: fix(tooltip): remove child scope requirement...
[10:27:51] *** AngularUI has left #angularjs
[10:28:30] *** dakra has joined #angularjs
[10:28:48] *** AngularUI has joined #angularjs
[10:28:48] <AngularUI> [bootstrap] chrisirhc closed pull request #2918: fix(tooltip): remove child scope requirement (master...feature/tooltip-remove-scope-req) http://git.io/Hi8SOw
[10:28:49] *** AngularUI has left #angularjs
[10:28:50] *** MaxV has joined #angularjs
[10:28:51] *** sikor_sxe has joined #angularjs
[10:28:54] *** bengillies has joined #angularjs
[10:28:59] *** tkimmel has quit IRC
[10:29:13] *** jaydubya has joined #angularjs
[10:29:26] *** ggrzybek has quit IRC
[10:29:28] *** tkimmel has joined #angularjs
[10:29:35] *** BahamutWC|Laptop has quit IRC
[10:30:17] *** rburns has quit IRC
[10:30:32] *** mrded has joined #angularjs
[10:31:05] *** tkimmel has quit IRC
[10:31:20] *** tkimmel has joined #angularjs
[10:31:38] *** wiherek has quit IRC
[10:31:38] *** AngularUI has joined #angularjs
[10:31:38] <AngularUI> [bootstrap] chrisirhc pushed 1 new commit to master: http://git.io/OBMwiQ
[10:31:38] <AngularUI> bootstrap/master faf38d2 Chris Chua: fix(tooltip): memory leak on show/hide...
[10:31:38] *** AngularUI has left #angularjs
[10:32:56] *** tkimmel has quit IRC
[10:33:15] *** tkimmel has joined #angularjs
[10:33:21] *** ProLoser has quit IRC
[10:34:04] *** themime has quit IRC
[10:34:42] *** Sky[x] has quit IRC
[10:34:45] <deyna> http://plnkr.co/edit/lVEbzPdAaSFAzEtWUR67?p=preview weirdly it seems to work here
[10:34:46] *** tkimmel has quit IRC
[10:35:14] *** tkimmel has joined #angularjs
[10:35:46] *** wiherek has joined #angularjs
[10:36:40] *** m8 has joined #angularjs
[10:36:48] *** tkimmel has quit IRC
[10:36:55] <deyna> im wondering if its karma
[10:37:01] *** Weezey has quit IRC
[10:37:03] *** numenor has joined #angularjs
[10:37:06] *** tkimmel has joined #angularjs
[10:37:19] *** Weezey has joined #angularjs
[10:37:32] *** caitp has joined #angularjs
[10:37:46] <dsdeiz> what's a 'deregistration function'?
[10:38:39] *** tkimmel has quit IRC
[10:38:43] *** ProLoser has joined #angularjs
[10:38:45] <deyna> that plunkr is the same as whats in my code, but the difference is im using karma
[10:38:54] <thomastuts> deyna: are you including your source file(s) in karma?
[10:39:04] *** tkimmel has joined #angularjs
[10:39:10] *** blackjid_ has joined #angularjs
[10:39:19] <deyna> ../**/*.js should do it
[10:39:45] <deyna> so in that case, my files aren't being loaded in order
[10:39:53] <deyna> i suspect im adding to a module that isn't defined yet
[10:40:02] <deyna> rather than overwriting it
[10:40:13] <thomastuts> if they're not in the order they should be if they are loaded alphabetically then yes, you're right
[10:40:22] <deyna> ye, its just a wildcard
[10:40:29] <deyna> to load all my app components
[10:40:33] <thomastuts> i usually have an app bootstrap file called app.js which is responsible for loading any submodules
[10:40:33] *** tkimmel has quit IRC
[10:40:39] *** moritzs has joined #angularjs
[10:40:48] <thomastuts> so my globbing pattern looks like ['app.js', '**/*.js']
[10:40:50] *** moafoca has quit IRC
[10:40:52] <deyna> let me try explicitly loading the module definition first
[10:41:02] *** azizur has joined #angularjs
[10:41:04] *** tkimmel has joined #angularjs
[10:41:22] <deyna> so app.js would contain module1 module2 module 3 etc
[10:42:29] *** tkimmel has quit IRC
[10:42:29] *** caitp has quit IRC
[10:42:33] <thomastuts> if that was a question regarding my way of doing things, not really, app just includes the module names in its own dependencies, the actual module declaration for the submodules happens in a different file (suffixed with -module)
[10:42:42] *** cannap has joined #angularjs
[10:42:55] *** tkimmel has joined #angularjs
[10:42:55] *** Akufen has quit IRC
[10:43:40] *** tarnus has joined #angularjs
[10:44:13] *** categoryzero has quit IRC
[10:44:22] *** tkimmel has quit IRC
[10:44:51] *** tkimmel has joined #angularjs
[10:44:58] *** tangorri has joined #angularjs
[10:45:05] *** Jdubs has quit IRC
[10:45:37] <deyna> ye thats what i mean
[10:45:52] *** BahamutWC|Work has quit IRC
[10:45:55] *** martianboy has quit IRC
[10:46:37] *** tkimmel has quit IRC
[10:46:41] *** esk4nd4r has quit IRC
[10:46:45] *** tkimmel has joined #angularjs
[10:47:53] *** moritzs has quit IRC
[10:48:18] *** tkimmel has quit IRC
[10:48:21] *** tarnus has quit IRC
[10:48:44] *** tkimmel has joined #angularjs
[10:48:44] *** Lingos has joined #angularjs
[10:48:49] <thomastuts> ah, all right
[10:49:03] *** Leon has quit IRC
[10:49:05] *** platonic has joined #angularjs
[10:49:58] *** hippobottamus2 has joined #angularjs
[10:50:06] *** BahamutWC|Work has joined #angularjs
[10:50:10] *** mupkoo has quit IRC
[10:50:15] <deyna> i think thats worked
[10:50:32] *** tkimmel has quit IRC
[10:50:35] <deyna> made sure my angular.module('mymodule', []) was loaded before any other bits e.g. controllers etc
[10:50:41] *** tkimmel has joined #angularjs
[10:50:48] *** Akufen has joined #angularjs
[10:51:08] *** Siyfion has joined #angularjs
[10:51:15] *** ehalas has joined #angularjs
[10:51:32] *** rburns_ has quit IRC
[10:51:43] *** esk4nd4r has joined #angularjs
[10:51:49] <deyna> so might be best to have a bootsstrap that declares angular.module('myApp', ['myModule'])
[10:52:09] *** tkimmel has quit IRC
[10:52:09] *** esk4nd4r has quit IRC
[10:52:17] *** wd40s has joined #angularjs
[10:52:23] *** hippobottamus has quit IRC
[10:52:34] *** tkimmel has joined #angularjs
[10:52:37] *** dualz has joined #angularjs
[10:52:43] <deyna> bit rubbish mind you, but there we go
[10:52:48] <dualz> hi everyone
[10:53:34] *** platonic has quit IRC
[10:54:05] *** tkimmel has quit IRC
[10:54:27] *** tkimmel has joined #angularjs
[10:54:56] *** dannyc has joined #angularjs
[10:55:08] <thomastuts> deyna: i don't think that's rubbish, i think having a bootstrap file like that is good for not only declaring your top-level module, but also for configuring any initial things that don't get configured in a submodule
[10:55:52] *** basiclaser_ has joined #angularjs
[10:55:58] *** tkimmel has quit IRC
[10:56:09] *** klaut has quit IRC
[10:56:09] *** ehalas has quit IRC
[10:56:23] *** tkimmel has joined #angularjs
[10:57:07] *** richiebkr has quit IRC
[10:57:26] *** wd40s has quit IRC
[10:57:59] *** tkimmel has quit IRC
[10:58:16] *** tkimmel has joined #angularjs
[10:59:35] *** e0ipso is now known as e0ipso|away
[10:59:41] *** dannyc has quit IRC
[10:59:42] *** JohnFree has joined #angularjs
[10:59:54] *** tkimmel has quit IRC
[11:00:16] *** tkimmel has joined #angularjs
[11:01:38] *** tkimmel has quit IRC
[11:01:46] *** ehalas has joined #angularjs
[11:01:54] *** zanea is now known as zanea|away
[11:01:56] *** MalteJ has joined #angularjs
[11:02:06] *** tkimmel has joined #angularjs
[11:02:22] *** rchavik has quit IRC
[11:02:42] *** crawleyprint has joined #angularjs
[11:03:34] *** tkimmel has quit IRC
[11:04:00] *** ccohn has joined #angularjs
[11:04:02] *** tkimmel has joined #angularjs
[11:04:27] *** jillesme has quit IRC
[11:04:30] *** D-Boy has quit IRC
[11:04:31] *** e0ipso|away is now known as e0ipso
[11:04:40] *** D-Boy has joined #angularjs
[11:04:41] *** D-Boy has quit IRC
[11:04:41] *** D-Boy has joined #angularjs
[11:04:53] <arkin> btw guys, might be relevant to mention gulp-filelog which will list the order of your gulp.src files
[11:05:05] *** JohnFree has quit IRC
[11:05:39] *** wiherek has left #angularjs
[11:05:40] *** tkimmel has quit IRC
[11:05:52] *** rosieres has quit IRC
[11:06:02] *** tkimmel has joined #angularjs
[11:06:59] *** saucey has quit IRC
[11:07:39] *** tkimmel has quit IRC
[11:07:52] *** tkimmel has joined #angularjs
[11:08:32] *** ccohn has quit IRC
[11:09:23] *** tkimmel has quit IRC
[11:09:45] *** Mahonar has joined #angularjs
[11:09:51] *** tkimmel has joined #angularjs
[11:10:05] *** saucey has joined #angularjs
[11:10:17] *** _Syndicate has joined #angularjs
[11:10:59] *** Left_Turn has joined #angularjs
[11:11:16] *** tech2 has joined #angularjs
[11:11:23] *** apertoire has joined #angularjs
[11:11:30] *** tkimmel has quit IRC
[11:11:47] *** tkimmel has joined #angularjs
[11:12:40] *** ProLoser has quit IRC
[11:13:27] *** tkimmel has quit IRC
[11:13:43] *** tkimmel has joined #angularjs
[11:14:02] *** comboy has joined #angularjs
[11:14:05] *** joojis has quit IRC
[11:14:22] *** mak`` has joined #angularjs
[11:14:25] *** sr_ has joined #angularjs
[11:14:48] *** sr_ is now known as Guest69671
[11:14:48] <Guest69671> hi all
[11:15:07] *** rchavik has joined #angularjs
[11:15:16] *** tkimmel has quit IRC
[11:15:38] *** tkimmel has joined #angularjs
[11:16:03] <Guest69671> i need some help in angularJS,,,
[11:16:28] *** jlebrech has joined #angularjs
[11:16:50] <Guest69671> i want to transfer values from one page to another and i want those values to be saved in a DB
[11:16:53] <jlebrech> how do I emit/broadcast using ui-router?
[11:17:15] *** Lingos has quit IRC
[11:17:31] *** tkimmel has quit IRC
[11:17:36] *** dsdeiz has quit IRC
[11:17:38] *** tkimmel_ has joined #angularjs
[11:17:41] *** esk4nd4r has joined #angularjs
[11:17:51] *** martianboy has joined #angularjs
[11:19:16] *** samn has joined #angularjs
[11:19:16] *** tkimmel_ has quit IRC
[11:19:25] *** mystronyx has left #angularjs
[11:19:38] *** tkimmel has joined #angularjs
[11:19:43] *** SoulBlade has joined #angularjs
[11:19:52] *** carbonpile has joined #angularjs
[11:20:23] *** lite_ has quit IRC
[11:20:28] *** cakirke has joined #angularjs
[11:20:39] *** Guest69671 has quit IRC
[11:21:19] *** ProLoser has joined #angularjs
[11:21:19] *** tkimmel has quit IRC
[11:21:25] *** lite has joined #angularjs
[11:21:27] *** tkimmel has joined #angularjs
[11:21:55] *** Akufen has quit IRC
[11:22:10] *** glosoli has quit IRC
[11:22:20] *** jstroem has quit IRC
[11:22:21] *** rtpg has quit IRC
[11:22:29] *** BlinkyBill has joined #angularjs
[11:22:31] *** MrBaboon has quit IRC
[11:23:01] *** tkimmel has quit IRC
[11:23:10] *** moritzs has joined #angularjs
[11:23:21] *** Akufen has joined #angularjs
[11:23:25] *** tkimmel has joined #angularjs
[11:24:06] <obs> jlebrech, what do you want emit?what is the use case?
[11:24:13] *** ThomasBeauvais has joined #angularjs
[11:24:17] *** qdk has joined #angularjs
[11:24:19] *** SoulBlade has quit IRC
[11:25:10] *** martianboy has quit IRC
[11:25:25] *** tkimmel_ has joined #angularjs
[11:25:26] <jlebrech> obs: I render multiple views per page and I need to post data from 2 or more controllers in that state.
[11:25:28] *** tkimmel has quit IRC
[11:25:40] *** xbajci has quit IRC
[11:25:41] *** carbonpile has quit IRC
[11:26:39] <jlebrech> obs: I'm finding this useful https://github.com/angular-ui/ui-router/blob/gh-pages/sample/app/app.js
[11:26:45] *** tkimmel_ has quit IRC
[11:27:08] *** marcjs has joined #angularjs
[11:27:12] <jlebrech> i can init a rootScope attribute and access that from both controllers
[11:27:13] *** tkimmel has joined #angularjs
[11:27:20] *** phuh has quit IRC
[11:27:48] *** phuh has joined #angularjs
[11:28:15] *** denny009 has joined #angularjs
[11:28:38] *** MrBaboon has joined #angularjs
[11:28:43] *** tkimmel has quit IRC
[11:29:03] <obs> for send data between controllers you can use a service, that is a singleton, and is sinchronize in all your application, or you can do a parent state with a parent controller and all the child states of this parent share the parent controller, example if you declare a $scope.cosa=13 in the parent state all child states can access to this variable
[11:29:07] <denny009> hello all someone coul explain me what mean inside a directive when there's the ? something like that: scope: { childs: '=?'}
[11:29:09] *** tkimmel has joined #angularjs
[11:29:56] *** jgladwill has quit IRC
[11:30:18] *** munzmania has quit IRC
[11:30:18] *** radiodario has joined #angularjs
[11:30:29] <obs> this is the first options, i think jlebrech
[11:30:38] *** delphicokami is now known as DelphicOkami
[11:30:40] *** samn has quit IRC
[11:30:41] <jlebrech> obs: yeah just seend that example of setting a rootScope variable and it trickles to the child controllers :)
[11:30:42] *** tkimmel has quit IRC
[11:31:04] <jlebrech> obs: i like your service example too, might pick that one up later on
[11:31:06] *** tkimmel has joined #angularjs
[11:32:02] <radiodario> morning - i have two datepickers that have two instances of the same controller - but i need some arguments passed to them (basically a date offset from today and a property name that they populate on the root scope). Is there a way to pass that data to the controllers as attributes of the html?
[11:32:21] *** ProLoser has quit IRC
[11:32:42] *** tkimmel has quit IRC
[11:32:59] *** tkimmel has joined #angularjs
[11:33:25] *** Lingos has joined #angularjs
[11:34:19] *** rchavik has quit IRC
[11:34:27] <obs> radiodario, if you use ui.router you can send parameters in ui-sref directive, specify the attributes in the url and acces from the controller with $stateParams
[11:34:47] <radiodario> i'm not using a router, i'm building a search form
[11:34:57] *** tkimmel_ has joined #angularjs
[11:34:57] *** tkimmel has quit IRC
[11:35:23] *** azizur has quit IRC
[11:35:31] <radiodario> my issue is at initialisation, i.e. i want two pretty much identical things (i.e. same behaviour) to only differ in some initial settings (i.e. the default date they display)
[11:35:58] <radiodario> but that date has to be calculated from the current date
[11:36:17] *** johnnyghost has joined #angularjs
[11:36:28] *** Akufen has quit IRC
[11:36:31] *** tkimmel_ has quit IRC
[11:36:54] *** tkimmel has joined #angularjs
[11:37:33] <denny009> hello all someone coul explain me what mean inside a directive when there's the ? something like that: scope: { childs: '=?'}
[11:37:44] *** fat has joined #angularjs
[11:38:01] <fat> I want more than one table that has rows, which can be sorted. How can I do this without copy-pasting this table code and javascript code all over again? http://jsbin.com/hohahijofu/3/edit?html,output
[11:38:18] *** BlinkyBill has quit IRC
[11:38:22] *** Akufen has joined #angularjs
[11:38:31] *** caitp has joined #angularjs
[11:38:41] *** eamonn has joined #angularjs
[11:38:48] *** tkimmel_ has joined #angularjs
[11:39:01] *** tkimmel has quit IRC
[11:39:14] *** MaxV has quit IRC
[11:39:46] *** azizur has joined #angularjs
[11:40:14] *** tkimmel_ has quit IRC
[11:40:15] <radiodario> found my own answer ng-init!
[11:40:25] *** Lingos has quit IRC
[11:40:28] <fat> any help would be appreciated
[11:40:33] <obs> radiodario, yujuu ;)
[11:40:44] *** tkimmel has joined #angularjs
[11:40:53] <eamonn> Hi there, I was just wondering if anybody has had any issues with using Angular on lower end Android devices (2.1 or 2.3)? Did a quick google search but just double checking really
[11:41:00] *** eBureau has quit IRC
[11:41:01] *** Lingos has joined #angularjs
[11:41:04] *** blomman has quit IRC
[11:41:29] *** blomman has joined #angularjs
[11:42:09] <radiodario> obs: thanks for the help!
[11:42:12] *** blomman has joined #angularjs
[11:42:14] *** tkimmel has quit IRC
[11:42:19] *** ProLoser has joined #angularjs
[11:42:30] *** jeffisabelle has joined #angularjs
[11:42:40] *** tkimmel has joined #angularjs
[11:43:06] *** caitp has quit IRC
[11:43:13] <johnnyghost> Hi there, can someone tell me where we should store global values, such as userContext?
[11:43:26] *** blomman has quit IRC
[11:43:35] <obs> fat, you can put the code your code in a factory and call it from controller, if you want a pretty table and easy to use with filters sort etc....you can use ng-table http://ngmodules.org/modules/ng-table
[11:43:41] <radiodario> denny009: i think it's telling $compile to bind to the ? attribute
[11:43:48] *** marr has joined #angularjs
[11:43:54] <radiodario> denny009: https://docs.angularjs.org/guide/directive#Attributes
[11:43:59] *** blomman has joined #angularjs
[11:44:04] *** patrick99e99 has joined #angularjs
[11:44:33] *** araujo has joined #angularjs
[11:44:40] *** tkimmel has quit IRC
[11:44:42] *** tkimmel_ has joined #angularjs
[11:44:43] *** araujo has quit IRC
[11:44:43] *** araujo has joined #angularjs
[11:44:46] <fat> obs: can you please put this in the jsbin example?
[11:44:55] <fat> and do i need additional module?
[11:45:11] <denny009> radiodario: I'm in the same page but I don't find the explenation of ?
[11:45:21] <denny009> radiodario: where's?
[11:45:40] <radiodario> no clue i saw when it says =attribute
[11:45:51] <radiodario> so i suppose ? might be an attribute, or a shorthand for all attributes? or something
[11:45:55] <radiodario> angular is weird lol
[11:46:02] *** tkimmel_ has quit IRC
[11:46:11] *** rchavik has joined #angularjs
[11:46:22] *** LordRO has joined #angularjs
[11:46:28] *** tkimmel has joined #angularjs
[11:46:57] *** TyrfingMjolnir has quit IRC
[11:47:03] *** yottanami has joined #angularjs
[11:47:06] *** Rejected has joined #angularjs
[11:48:06] <obs> fat, no, this is a module with pretty table styles, pre configuration, but you can use your own code and re-use this with a factory, sorry i have no time to make a pastebin now...you can find information here http://stackoverflow.com/questions/14324451/angular-service-vs-angular-factory http://tylermcginnis.com/angularjs-factory-vs-service-vs-provider/ http://viralpatel.net/blogs/angularjs-service-factory-tutorial/
[11:48:06] <obs> http://www.sitepoint.com/tidy-angular-controllers-factories-services/
[11:48:26] *** tkimmel_ has joined #angularjs
[11:48:31] *** patrick99e99 has quit IRC
[11:48:36] *** matthoiland has joined #angularjs
[11:48:55] *** avree has quit IRC
[11:49:06] *** laurensclaessen has quit IRC
[11:49:08] *** sigurding has quit IRC
[11:49:46] <deyna> unit testing a form submission fn(), is it cool to just attach a mock "form" to the scope
[11:49:52] <deyna> for checking if $valid etc?
[11:49:54] *** nesquerra has quit IRC
[11:50:11] <deyna> the validations happen in directives
[11:50:16] *** tkimmel_ has quit IRC
[11:50:22] *** tkimmel__ has joined #angularjs
[11:50:42] *** Hackwar has quit IRC
[11:50:59] <deyna> so something like scope.form = {$valid: true}
[11:51:16] *** tkimmel has quit IRC
[11:51:22] *** laurensclaessen has joined #angularjs
[11:51:39] *** ome has quit IRC
[11:52:17] *** tkimmel has joined #angularjs
[11:52:32] *** tkimmel__ has quit IRC
[11:53:03] *** MrBaboon has quit IRC
[11:53:18] *** matthoiland has quit IRC
[11:53:23] *** azizur has quit IRC
[11:53:35] <yottanami> I used Select2 https://github.com/angular-ui/ui-select2 as select, now I want select one of the items in select in my AngularJS controller, How can I do it ?
[11:53:46] *** tkimmel has quit IRC
[11:53:47] <deebo> does using compile in a directive override the link function?
[11:54:16] *** tkimmel has joined #angularjs
[11:54:34] <deyna> compile happens before the link
[11:54:36] *** azizur has joined #angularjs
[11:54:41] *** categoryzero has joined #angularjs
[11:54:42] *** Mackseraner has joined #angularjs
[11:54:45] <deyna> but can return a link function by itself
[11:54:49] *** Weezey has quit IRC
[11:54:56] *** StryKaizer has joined #angularjs
[11:55:08] <deebo> hmm, if i add a compile (to edit the dom), the function i add to the local scope in link doesnt exist
[11:55:19] *** rchavik has quit IRC
[11:55:42] *** tkimmel has quit IRC
[11:55:59] <deyna> would have to see
[11:56:03] *** Weezey has joined #angularjs
[11:56:13] *** tkimmel has joined #angularjs
[11:56:13] *** ciwolsey has joined #angularjs
[11:56:41] <ciwolsey> hey all, what is the best resource for learning angular?
[11:57:05] *** bengillies has quit IRC
[11:57:53] *** tkimmel has quit IRC
[11:58:08] *** tkimmel has joined #angularjs
[11:58:12] *** mrded has quit IRC
[11:58:57] *** zwacky has quit IRC
[11:58:58] *** azizur1 has joined #angularjs
[11:59:02] *** martianboy has joined #angularjs
[11:59:42] *** mdedetrich has quit IRC
[11:59:52] *** tkimmel has quit IRC
[11:59:54] <titanomachy> Start with the tutorials on their website
[12:00:03] *** tkimmel has joined #angularjs
[12:00:04] *** bengillies has joined #angularjs
[12:00:12] <titanomachy> There is also a link to a more indepth free videocourse
[12:00:55] *** emkei has joined #angularjs
[12:00:58] *** azizur has quit IRC
[12:01:05] <titanomachy> ciwolsey: http://campus.codeschool.com/courses/shaping-up-with-angular-js/intro
[12:01:13] <obs> ciwolsey, the courses of codeschool are good, you have a free course of basic angular https://www.codeschool.com/courses/shaping-up-with-angular-js
[12:01:39] <ciwolsey> oh.. you would recommand those both over the egghead.io stuff?
[12:01:54] *** tkimmel has quit IRC
[12:01:57] *** tkimmel_ has joined #angularjs
[12:01:58] <titanomachy> Do both
[12:02:04] <emkei> Hello, I have a quick question regarding using replace:true in directives... I have read somewhere that this option is deprecated?
[12:02:08] <titanomachy> I would start with the codeschool one
[12:02:16] <titanomachy> it short, but extensive
[12:02:21] *** sk87 has quit IRC
[12:02:25] <ciwolsey> wow, great, thanks guys
[12:02:33] <titanomachy> just the right amount to get started
[12:02:45] *** jrist has quit IRC
[12:03:14] *** rchavik has joined #angularjs
[12:03:33] *** dreambox has joined #angularjs
[12:03:33] *** Fire-Dragon-DoL has joined #angularjs
[12:03:37] *** tkimmel_ has quit IRC
[12:03:44] <ciwolsey> haha, that song
[12:03:48] *** Lingos has quit IRC
[12:03:52] *** dylang has joined #angularjs
[12:03:54] *** tkimmel has joined #angularjs
[12:04:01] <titanomachy> the flatlanders have a store..
[12:04:02] <titanomachy> :)
[12:04:06] <ciwolsey> :)
[12:04:15] <titanomachy> still in my head.
[12:04:29] *** mrded has joined #angularjs
[12:04:44] *** ccohn has joined #angularjs
[12:05:00] *** jillesme has joined #angularjs
[12:05:31] *** tkimmel has quit IRC
[12:05:49] *** tkimmel has joined #angularjs
[12:06:27] *** johnnyghost has quit IRC
[12:06:56] *** frkout_ has joined #angularjs
[12:07:16] *** frkout_ has quit IRC
[12:07:20] *** cotko has joined #angularjs
[12:07:30] *** tkimmel has quit IRC
[12:07:33] <m8> Can i serialize a form whit files and use $resource service for POST to server?
[12:07:48] *** tkimmel has joined #angularjs
[12:07:55] *** blomman has quit IRC
[12:08:03] *** richiebkr has joined #angularjs
[12:08:05] *** frkout_ has joined #angularjs
[12:08:18] *** dreambox has quit IRC
[12:08:29] *** blomman has joined #angularjs
[12:09:09] *** esk4nd4r has quit IRC
[12:09:16] *** tkimmel has quit IRC
[12:09:17] *** Lingos has joined #angularjs
[12:09:19] *** ccohn has quit IRC
[12:09:43] *** tkimmel has joined #angularjs
[12:09:52] *** jillesme has quit IRC
[12:10:28] *** svycka has joined #angularjs
[12:10:37] *** frkout has quit IRC
[12:10:54] *** DelphicOkami is now known as delphicokami
[12:11:01] *** sigurding has joined #angularjs
[12:11:21] *** zwacky has joined #angularjs
[12:11:25] *** tkimmel has quit IRC
[12:11:40] *** tkimmel has joined #angularjs
[12:11:57] <jlebrech> can I do $rootScope.$broadcast to children scopes only?
[12:12:34] *** richiebkr has quit IRC
[12:12:39] *** frkout_ has quit IRC
[12:12:52] *** blomman has quit IRC
[12:13:09] *** brad__ has joined #angularjs
[12:13:11] *** moritzs has quit IRC
[12:13:19] *** tkimmel has quit IRC
[12:13:27] <brad__> Does anyone know how to allow POST method on grunt-contrib-connect?
[12:13:28] *** juristr has joined #angularjs
[12:13:35] *** tkimmel has joined #angularjs
[12:14:08] <jlebrech> I have a scope emitting an event, and then want the rootScope to broadcast that back down to other controllers, but but naming the broadcast event the same fires an infinite loop
[12:14:20] <jlebrech> :D
[12:15:15] *** tkimmel has quit IRC
[12:15:32] *** tkimmel has joined #angularjs
[12:15:35] *** darrin has quit IRC
[12:15:39] *** johnnyghost has joined #angularjs
[12:16:00] *** dakra has quit IRC
[12:16:19] *** fat has left #angularjs
[12:17:10] *** tkimmel has quit IRC
[12:17:33] *** tkimmel has joined #angularjs
[12:18:13] *** laurensclaessen has quit IRC
[12:18:14] *** ccbmx has joined #angularjs
[12:19:00] *** tkimmel has quit IRC
[12:19:08] *** ProLoser has quit IRC
[12:19:09] *** rtpg has joined #angularjs
[12:19:17] *** jaydubya has quit IRC
[12:19:26] *** tkimmel has joined #angularjs
[12:20:23] *** ogdabou has quit IRC
[12:20:23] *** Beatzebub has quit IRC
[12:20:37] *** fatshark has quit IRC
[12:20:48] *** kevinfagan has quit IRC
[12:21:01] *** tkimmel has quit IRC
[12:21:27] *** tkimmel has joined #angularjs
[12:21:43] *** johnnyghost has quit IRC
[12:21:44] *** ProLoser has joined #angularjs
[12:21:53] *** kevinfagan has joined #angularjs
[12:22:19] *** iksik has quit IRC
[12:22:52] <sacho_> jlebrech, why not just broadcast from rootscope initially?
[12:23:02] *** mupkoo has joined #angularjs
[12:23:04] *** wd40s has joined #angularjs
[12:23:11] *** tkimmel has quit IRC
[12:23:13] *** darrin has joined #angularjs
[12:23:19] *** tkimmel has joined #angularjs
[12:23:20] *** jstroem has joined #angularjs
[12:24:18] <jlebrech> sacho_: I can't access rootScope from my controller, maybe that's an issue
[12:24:37] <sacho_> sure you can
[12:24:40] <sacho_> just inject it
[12:24:44] *** slopjong has quit IRC
[12:24:45] *** tkimmel has quit IRC
[12:24:59] <jlebrech> sacho_: is that not injected? https://gist.github.com/jlebrech/349c18869e55f983a1af
[12:25:14] <sacho_> it is
[12:25:16] <sacho_> but you're not using it
[12:25:20] *** tkimmel has joined #angularjs
[12:25:51] <jlebrech> i can't access it where the debugger is
[12:26:15] *** hecspc has quit IRC
[12:26:23] <jlebrech> because i'm in a scope method i think
[12:26:39] *** anivemin has joined #angularjs
[12:27:05] *** thesmolden has joined #angularjs
[12:27:10] *** tkimmel_ has joined #angularjs
[12:27:19] *** tkimmel has quit IRC
[12:27:22] *** phuh has quit IRC
[12:27:29] *** azizur1 has quit IRC
[12:27:34] <jlebrech> think i need to pass rootScope as an arg to init
[12:27:39] *** macobo has quit IRC
[12:27:47] *** phuh has joined #angularjs
[12:27:48] *** jstroem has quit IRC
[12:28:00] *** johnnyghost has joined #angularjs
[12:28:02] *** wd40s has quit IRC
[12:28:34] *** tkimmel_ has quit IRC
[12:29:04] *** tkimmel has joined #angularjs
[12:29:24] *** gurke_ has quit IRC
[12:29:41] <sacho_> jlebrech, you shouldn't need to
[12:29:41] <juristr> Anyone has a clue why the the "data.text" expression is not shown by this directive if i have the ng-if specified?? http://plnkr.co/edit/cUuIUp9c1gxHhhdNfJXp?p=preview
[12:29:55] <juristr> If i remove the ng-if it works just as expected...
[12:29:57] *** jstroem has joined #angularjs
[12:29:57] <jlebrech> sacho_: I think ngInject is broken
[12:30:12] *** nodedfree has quit IRC
[12:30:12] <juristr> (sorry for eventual newbie errors)
[12:30:17] <sacho_> jlebrech, well, you're using Restangular just fine
[12:30:20] *** RangerRick has quit IRC
[12:30:32] <jlebrech> that's weird
[12:30:41] *** RangerRick has joined #angularjs
[12:30:42] *** tkimmel has quit IRC
[12:30:53] *** greengriminal has joined #angularjs
[12:30:58] *** tkimmel has joined #angularjs
[12:31:06] *** rchavik has quit IRC
[12:31:12] *** denny009 has quit IRC
[12:32:02] *** rchavik has joined #angularjs
[12:32:08] <jlebrech> sacho_: sorted thanks
[12:32:18] *** johnnyghost has quit IRC
[12:32:34] <jlebrech> i have to do: rootScope = $rootScope at the top. couldn't access it otherwise.
[12:32:50] *** carlosmantilla has quit IRC
[12:32:52] <jlebrech> wait..
[12:32:53] *** tarnus has joined #angularjs
[12:33:22] <jlebrech> actually it works like it should do now
[12:33:55] <jlebrech> sacho_: thanks
[12:33:57] *** azizur has joined #angularjs
[12:34:06] *** azyr has quit IRC
[12:34:29] <jlebrech> angularjs is freaking awesome
[12:34:53] <juristr> anyone having a spare minute, helping me shed some light on this issue?
[12:34:58] *** gurke_ has joined #angularjs
[12:34:59] <jlebrech> this is a like qt's signals and slots :D
[12:35:03] <sacho_> juristr, thanks to replace: true
[12:35:13] <juristr> sacho_: :O not really...
[12:35:17] *** tkimmel has quit IRC
[12:35:23] <jlebrech> event driven bliss :D
[12:35:24] *** nodedfree has joined #angularjs
[12:35:28] <juristr> sacho_: damn...why's that?
[12:35:49] *** Lingos has quit IRC
[12:35:54] *** ThomasBeauvais has quit IRC
[12:36:44] *** klaut has joined #angularjs
[12:36:45] <sacho_> jlebrech, in your debug window, you can see local variables, but $rootScope isnt local in init()
[12:37:01] <sacho_> it's part of init()'s closure(you can see closed over variables under one of the Closure lists)
[12:37:10] <sacho_> (this is all assuming you're using chrome)
[12:37:22] *** tarnus has quit IRC
[12:37:28] <jlebrech> sacho_: this is what it was :)
[12:37:34] *** Latros-OS has joined #angularjs
[12:37:40] <sacho_> juristr, I actually don't know
[12:37:45] *** nerder has joined #angularjs
[12:37:48] <nerder> hello
[12:37:51] *** platonic has joined #angularjs
[12:38:02] <nerder> anybody can help me to understand this: https://gist.github.com/anonymous/252eade42d8bd59c7e8b
[12:38:08] <juristr> sacho_: hmm...the thing i's that I'm building a directive which creates a recursive "tree-like" structure with ul's -> li's ... So replace was quite handy...not sure whether having custom tags within <ul>'s would work...
[12:38:22] <nerder> at line 37 i get 2 undefined value, i guess because they are out of scope, cause they exist just in the function
[12:38:44] <nerder> how can i take it out?
[12:39:36] <juristr> I'l have to work with attributes then..
[12:39:50] <juristr> sacho_: Thx for u'r help :)
[12:40:00] *** ProLoser has quit IRC
[12:40:19] <arkin> Quick one, can ui-router do nested routes deeper than 1 child?
[12:40:19] *** kacper_ has joined #angularjs
[12:40:31] <sacho_> juristr, I mean, ng-if creates a child scope
[12:40:41] *** alxd has joined #angularjs
[12:40:41] <sacho_> juristr, so that's one part of the interaction causing you problems
[12:40:41] *** tech2 has quit IRC
[12:40:46] *** thesmolden has quit IRC
[12:41:18] <juristr> sacho_: not sure I totally understand you #newbie
[12:41:32] <juristr> sacho_: why would the child scope be a problem in this scenario?
[12:41:40] <kacper_> hi, one question. I want to learn ANGULAR + NODE + MONGO + EXPRESS.. And I want to do it in proper way, please tell me what would be better and absolutely pro: do it with or without mean.js ? Thanks!
[12:42:04] <sacho_> juristr, if you don't care about the ng-if you could use an ng-show
[12:42:41] *** platonic has quit IRC
[12:43:03] <juristr> sacho_: oh...I see. well I could use, just thought it would be help "performance" if I remove the nodes, given they shouldn't be there in case the condition evaluates to false
[12:43:23] *** mdedetrich has joined #angularjs
[12:43:58] *** jstroem has quit IRC
[12:44:06] <jlebrech> kacper_: maybe you could dev in angular using json-server
[12:44:56] <kacper_> nope, I would like to do it with nodejs
[12:45:00] <kacper_> but thanks
[12:45:01] <juristr> kacper_: jlebrech firebase might be an option for a json-server...depends on the target of the project, though
[12:45:27] <kacper_> why node and mongo?
[12:45:54] *** hippobottamus2 has quit IRC
[12:45:59] <alxd> What are the reqiurements of a form for formName.$setPristine() to work? Mine changes state to pristine: true, but doesn't reset the input
[12:46:49] *** johnnyghost has joined #angularjs
[12:47:40] *** ehalas has quit IRC
[12:48:21] *** aoh_ has joined #angularjs
[12:48:25] *** ogdabou has joined #angularjs
[12:49:29] <arkin> alxd: if you have a model, clear it
[12:49:57] <arkin> alxd: e.g. ng-model="user.name" ... in your code do $scope.user = {}
[12:50:25] *** jstroem has joined #angularjs
[12:50:29] *** mmealling has joined #angularjs
[12:50:34] <alxd> arkin, I'm setting it to null and it doesn't exactly respond
[12:50:57] *** ggrzybek has joined #angularjs
[12:51:06] <arkin> alxd: try setting it to an empty object, not tried null
[12:51:48] *** lite has quit IRC
[12:51:51] *** lite_ has joined #angularjs
[12:52:07] <alxd> arkin, thank you
[12:52:19] <arkin> alxd: lol, np
[12:52:25] *** onats has quit IRC
[12:52:27] *** johnnyghost has quit IRC
[12:52:37] *** Lingos has joined #angularjs
[12:52:42] *** sk87 has joined #angularjs
[12:53:59] *** azyr has joined #angularjs
[12:54:21] *** sikor_sxe has quit IRC
[12:55:36] *** Hackwar has joined #angularjs
[12:56:01] *** tech2 has joined #angularjs
[12:56:35] *** niop has joined #angularjs
[12:57:20] <aoh_> ้ร
[12:57:20] *** merobertsjr has quit IRC
[12:57:21] *** StryKaizer has quit IRC
[12:57:21] *** edy has quit IRC
[12:57:21] *** Click66 has quit IRC
[12:57:21] *** GreenJello has quit IRC
[12:57:21] *** marcjs has quit IRC
[12:57:22] *** afuggini has quit IRC
[12:57:22] *** jrowny has quit IRC
[12:57:22] *** HelperW has quit IRC
[12:57:23] *** mbenadda__ has quit IRC
[12:57:24] *** jacuqesdancona has quit IRC
[12:57:27] *** Lingos has quit IRC
[12:57:28] *** mbenadda____ has quit IRC
[12:57:29] <aoh_> hi
[12:57:35] *** jstroem has quit IRC
[12:57:45] *** jacuqesdancona has joined #angularjs
[12:57:48] *** Click66 has joined #angularjs
[12:57:57] *** onats has joined #angularjs
[12:57:59] *** jstroem has joined #angularjs
[12:58:21] *** spatialbrew has joined #angularjs
[12:58:25] *** jstroem has quit IRC
[12:58:34] *** ThomasBeauvais has joined #angularjs
[12:58:55] *** jstroem has joined #angularjs
[12:58:59] *** edy has joined #angularjs
[12:58:59] <nerder> yo?
[12:59:10] <nerder> anybody read me code and have any suggestion?
[12:59:17] *** d10n-work has joined #angularjs
[12:59:49] <alxd> arkin, it doesn't seem to work, even though the controller believes that the ng-model is set to X, it's actually Y in the DOM
[13:00:03] *** marcjs has joined #angularjs
[13:01:19] *** brad__ has quit IRC
[13:01:42] *** dharmit has quit IRC
[13:02:27] *** RedOrangeZ has joined #angularjs
[13:02:27] *** rchavik has quit IRC
[13:03:51] *** japhar81 has quit IRC
[13:04:52] *** ThomasBeauvais has quit IRC
[13:05:20] *** Leon has joined #angularjs
[13:05:21] *** johnnyghost has joined #angularjs
[13:05:30] *** ccohn has joined #angularjs
[13:06:07] *** Mackseraner has quit IRC
[13:06:19] *** zemanel has joined #angularjs
[13:06:39] *** anapitupulu has joined #angularjs
[13:06:40] *** johnnyghost has quit IRC
[13:07:59] *** mmealling has quit IRC
[13:08:09] *** johnnyghost has joined #angularjs
[13:08:45] *** rosieres has joined #angularjs
[13:09:03] *** caitp has joined #angularjs
[13:10:16] *** macobo has joined #angularjs
[13:10:43] *** ccohn has quit IRC
[13:11:00] *** klaut has quit IRC
[13:11:21] *** ThomasBeauvais has joined #angularjs
[13:11:52] *** sikor_sxe has joined #angularjs
[13:13:32] *** caitp has quit IRC
[13:14:32] *** blomman has joined #angularjs
[13:15:14] *** Caroga_afk is now known as Caroga
[13:15:34] *** rchavik has joined #angularjs
[13:17:28] <deebo> hmpf, how do i add a directive in a directive? If I add it in compile body, it works but the values the other directive gets are like {{ name }}
[13:17:43] *** azizur has quit IRC
[13:17:51] *** Txandy has joined #angularjs
[13:17:56] <deebo> if i add it in pre or post hooks of compile, it doesnt activate the other directive
[13:18:40] *** FunnyLookinHat has joined #angularjs
[13:18:44] *** laurensclaessen has joined #angularjs
[13:19:14] *** travm has joined #angularjs
[13:19:32] *** LordRO has quit IRC
[13:19:59] *** \du has joined #angularjs
[13:20:29] *** SoulBlade has joined #angularjs
[13:20:47] *** johnnyghost has quit IRC
[13:21:21] *** jlebrech has quit IRC
[13:22:01] *** jagga has joined #angularjs
[13:22:13] *** eBureau has joined #angularjs
[13:22:23] *** johnnyghost has joined #angularjs
[13:22:29] *** laurensclaessen has quit IRC
[13:22:42] *** laurensclaessen has joined #angularjs
[13:23:09] *** marshall_ has quit IRC
[13:24:33] *** johnnyghost has quit IRC
[13:24:34] *** BillCriswell has joined #angularjs
[13:24:38] *** jaydubya has joined #angularjs
[13:24:52] *** SoulBlade has quit IRC
[13:24:52] *** jagga__ has quit IRC
[13:24:55] *** StryKaizer has joined #angularjs
[13:25:05] *** mjs2600 has joined #angularjs
[13:25:10] *** yandos has joined #angularjs
[13:25:19] *** josh-k_ has joined #angularjs
[13:25:29] *** PrinceAMD has joined #angularjs
[13:26:11] <yandos> hi, anyone know how I can call a function on inital page load similar to <body onload=foo()>
[13:26:43] *** nerder has quit IRC
[13:27:22] *** phuh has quit IRC
[13:27:23] <sacho_> what's wrong with onload=foo()
[13:27:46] <sacho_> you can use app.run(runHandler), this is after domready too
[13:27:48] *** phuh has joined #angularjs
[13:28:08] *** soee has quit IRC
[13:28:19] *** esk4nd4r has joined #angularjs
[13:28:40] *** Weezey has quit IRC
[13:28:42] *** saucey has quit IRC
[13:29:04] *** Weezey has joined #angularjs
[13:29:14] *** moritzs has joined #angularjs
[13:29:16] <yandos> thanks sacho_ app.run is what i was looking for
[13:29:43] *** jaydubya has quit IRC
[13:30:03] *** soee has joined #angularjs
[13:30:47] *** ajk27 has quit IRC
[13:31:47] *** rburns has joined #angularjs
[13:31:52] <setec> why mongo?
[13:33:39] *** MaxV has joined #angularjs
[13:33:49] <ClearsTheScreen> because awesome. :3
[13:34:54] *** marshall_ has joined #angularjs
[13:35:13] *** simplyshipley has joined #angularjs
[13:35:16] *** sz332 has joined #angularjs
[13:35:19] <sz332> hello
[13:35:33] *** ozooner__ has joined #angularjs
[13:35:34] *** BillCriswell has quit IRC
[13:35:44] <scav> so
[13:36:06] *** sk87 has quit IRC
[13:36:15] <scav> flashing mongo db?
[13:36:22] *** ajk27 has joined #angularjs
[13:36:32] <bd-> flashing?
[13:36:32] *** ozooner_ has quit IRC
[13:36:56] <scav> that was not meant to go here
[13:37:05] <scav> and no, im not talking about flashing as in firmwaRE :P
[13:37:31] *** matthoiland has joined #angularjs
[13:37:33] *** klaut has joined #angularjs
[13:37:37] <bd-> can't think what context you could be using it in
[13:37:51] <scav> you dont have to :)
[13:39:15] *** travm has quit IRC
[13:39:18] *** niop has quit IRC
[13:40:01] *** whitebook has joined #angularjs
[13:40:33] *** wd40s has joined #angularjs
[13:40:39] *** dsdeiz has joined #angularjs
[13:41:06] *** mdedetrich has quit IRC
[13:41:25] *** scythe__ has joined #angularjs
[13:41:34] *** mdedetrich has joined #angularjs
[13:42:58] *** thirdknife has quit IRC
[13:43:01] *** Sebastien-L has quit IRC
[13:43:02] *** matthoiland has quit IRC
[13:43:45] *** wolfman2000 has quit IRC
[13:44:18] *** newUser has joined #angularjs
[13:44:37] <newUser> Hello
[13:45:04] *** arkin has quit IRC
[13:45:17] *** josh-k has joined #angularjs
[13:45:29] *** darrin has quit IRC
[13:45:53] *** metasansana has joined #angularjs
[13:46:00] *** josh-k__ has joined #angularjs
[13:46:26] *** iateadonut has joined #angularjs
[13:46:53] *** ssawickik has joined #angularjs
[13:47:29] *** MaxV_ has joined #angularjs
[13:47:35] *** saucey has joined #angularjs
[13:47:41] *** moritzs has quit IRC
[13:48:26] *** josh-k_ has quit IRC
[13:48:32] *** darlanalves has joined #angularjs
[13:49:18] *** glaksmono has quit IRC
[13:49:49] *** MaxV has quit IRC
[13:49:56] *** josh-k has quit IRC
[13:50:41] *** glaksmono has joined #angularjs
[13:50:42] *** jdcasey has joined #angularjs
[13:52:04] *** MaxV_ has quit IRC
[13:52:20] <deyna> anyone got ay tips for unit testing views? im building aregistration module that i want to test in isolation (mock out the back end)
[13:52:44] <deyna> so it'll have a template, some directives, controllers etc
[13:52:53] *** phzon has quit IRC
[13:52:55] <thomastuts> deyna: unit testing is for code
[13:53:01] *** travm has joined #angularjs
[13:53:09] <thomastuts> E2E testing is for testing views and functionality like clicking buttons etc
[13:53:26] <deyna> can i still run e2e without actually submitting http requests?
[13:53:49] *** SahanH has joined #angularjs
[13:54:10] *** jdtoy has joined #angularjs
[13:55:23] *** jlebrech has joined #angularjs
[13:55:45] *** blomman has quit IRC
[13:56:09] *** Txandy has quit IRC
[13:56:16] *** Txandy has joined #angularjs
[13:56:21] *** blomman has joined #angularjs
[13:56:37] *** jzorn has joined #angularjs
[13:56:54] <ClearsTheScreen> deyna: by an large, "you don't". test the functionality of the components; testing the HTML view does often not provide much insight compared to the costs. E2E testing can help with covering, wll, the end-to-end and making sure key UI elements work as expected. but generally i'd say testing the code (unit, functional tests) has better yield.
[13:57:09] *** jdtoy has left #angularjs
[13:57:46] <deyna> i do agree. i just had some scenarios like rendering error messages to the screen to be verified - but in that regard e2e sounds better for that
[13:58:59] <deyna> think it means im not quite ready to write those yet until the rest of my components are done
[13:59:42] *** Latros-OS has quit IRC
[13:59:52] <greengriminal> Can someone confirm if this is right: https://gist.github.com/anonymous/1125be4baf9a0ef2255a thanks.
[14:00:02] *** gordroidJS has joined #angularjs
[14:00:07] *** mdedetrich has quit IRC
[14:00:20] *** mdedetrich has joined #angularjs
[14:00:28] *** tarnus has joined #angularjs
[14:00:43] <deebo> ok so, i have a directive with a tempalte, the template contains another directive like so: <input name="{{ name }}" my-directive>, when my-directive reads the input name, the value it gets is '{{ name }}', what should i do to get the actual value?
[14:01:02] *** aendrew has joined #angularjs
[14:01:05] *** arkin has joined #angularjs
[14:01:05] *** arkin has joined #angularjs
[14:01:26] <zomg> greengriminal: does it work?
[14:01:55] *** klaut has quit IRC
[14:01:59] *** ThomasBeauvais has quit IRC
[14:02:12] *** jzorn has quit IRC
[14:02:13] <thomastuts> greengriminal: why are you setting the same classes both on true and false?
[14:02:19] <greengriminal> zomg: no.
[14:02:26] <greengriminal> thomastuts: I am just testing that's all.
[14:02:33] <thomastuts> well that doesn't make sense
[14:02:39] <greengriminal> Regardless if the expression is true or false the class doesn't appear.
[14:02:42] <thomastuts> you set different classes based on the truthyness of the xpression
[14:02:45] *** fedenunez has joined #angularjs
[14:02:46] <ClearsTheScreen> deyna: probably; yeah. you can for a start visually confirm that at least one error message gets displayed correctly, and let the unit test prove that the part of the scope dealing with holding the messages is populated correctly. that goes quite a way; ofc an automated / CI way for making sure it works is better, down the road. :)
[14:03:45] *** oncenull has joined #angularjs
[14:04:46] *** hiptobecubic has joined #angularjs
[14:05:12] *** dnull has joined #angularjs
[14:05:37] <dnull> How can I connect with Localhost mamp server: $http.get('http://localhost:8080/xxapi.dev/id/user').
[14:05:48] *** ome has joined #angularjs
[14:05:52] <thomastuts> greengriminal: well your testing doesn't make sense
[14:06:02] *** sk87 has joined #angularjs
[14:06:05] <greengriminal> thomastuts: I will make an update and get back to you
[14:06:15] *** ccohn has joined #angularjs
[14:06:18] <thomastuts> also, having the same class for both true and false doesn't work
[14:06:21] <thomastuts> they sort of cancel each other out
[14:06:23] *** moritzs has joined #angularjs
[14:06:37] *** Caroga is now known as Caroga_afk
[14:06:45] *** rburns has quit IRC
[14:06:53] *** jillesme has joined #angularjs
[14:07:48] *** monk_ has joined #angularjs
[14:08:00] *** borvoh has joined #angularjs
[14:08:06] <thomastuts> no, sorry, they don't cancel each other out, that's pretty poor wording
[14:08:46] <thomastuts> if the expression evaluates to false, the classes are removed
[14:09:01] <thomastuts> http://plnkr.co/edit/UEJE9v7Y9IyHaYaZ6rs3?p=preview
[14:09:11] <thomastuts> play with the true and false values here, and try using the same class name
[14:09:29] *** whiteboo_ has joined #angularjs
[14:10:33] *** saint-ron has quit IRC
[14:10:46] *** ccohn has quit IRC
[14:10:57] *** tomzx`afk is now known as tomzx
[14:11:08] *** mupkoo has quit IRC
[14:11:23] *** whitebook has quit IRC
[14:11:26] *** monk_ has quit IRC
[14:11:37] *** jillesme has quit IRC
[14:11:41] *** ThomasBeauvais has joined #angularjs
[14:12:20] *** jillesme has joined #angularjs
[14:12:33] *** mupkoo has joined #angularjs
[14:12:53] *** lw_ has quit IRC
[14:13:21] *** AviMarcus has joined #angularjs
[14:14:23] *** Latros-OS has joined #angularjs
[14:14:25] *** MaxV has joined #angularjs
[14:14:37] *** lw has joined #angularjs
[14:14:51] *** Philipe has joined #angularjs
[14:15:02] *** caitp has joined #angularjs
[14:15:24] <Philipe> Hi guys! Can someone help me?! http://stackoverflow.com/questions/26757621/how-to-collapse-angularjs-child-rows
[14:15:46] *** jaydubya has joined #angularjs
[14:15:54] *** rchavik has quit IRC
[14:16:10] *** loverajoel has joined #angularjs
[14:16:19] *** glaksmono has quit IRC
[14:16:38] *** lw has quit IRC
[14:17:15] *** mmealling has joined #angularjs
[14:17:33] *** cakirke has quit IRC
[14:17:44] *** klaut has joined #angularjs
[14:19:20] *** c00ljs has quit IRC
[14:19:22] *** alinouman has joined #angularjs
[14:19:29] *** dnull has quit IRC
[14:19:56] *** tkimmel has joined #angularjs
[14:20:00] *** M8M has quit IRC
[14:20:03] *** HelperW has joined #angularjs
[14:20:15] *** discgo has joined #angularjs
[14:20:46] *** AWAW has joined #angularjs
[14:21:31] *** eamonn has quit IRC
[14:21:51] *** Raging_Hog has quit IRC
[14:21:59] *** jstroem has quit IRC
[14:22:46] *** onats has quit IRC
[14:22:55] <benjick> Heya
[14:23:09] <benjick> best way to serve pages that google can index?
[14:23:12] <benjick> I use a custom php backend
[14:24:07] *** moritzs has quit IRC
[14:24:08] *** DoubleAW has quit IRC
[14:24:28] *** aendrew has quit IRC
[14:24:36] *** tkimmel has quit IRC
[14:26:35] *** platonic has joined #angularjs
[14:26:43] <jlebrech> benjick: html
[14:26:45] *** aendrew has joined #angularjs
[14:27:26] *** phuh has quit IRC
[14:27:36] *** tristanp has joined #angularjs
[14:27:54] *** phuh has joined #angularjs
[14:27:58] <benjick> jlebrech: Yeah, but since we're in #angularjs I was thinking something that supports views etc
[14:28:01] *** klaut has quit IRC
[14:28:02] <benjick> Or does google do that?
[14:28:27] <benjick> like prerender.io
[14:28:51] *** gunn has quit IRC
[14:28:55] *** johnnyghost has joined #angularjs
[14:28:57] *** lite_ has quit IRC
[14:29:12] *** mdedetrich has quit IRC
[14:29:21] *** lite has joined #angularjs
[14:29:24] *** m8 has quit IRC
[14:29:29] *** Johan has quit IRC
[14:29:35] *** mdedetrich has joined #angularjs
[14:29:36] *** m8 has joined #angularjs
[14:29:42] *** e0ipso is now known as e0ipso|away
[14:29:58] *** naneau has joined #angularjs
[14:30:13] <jlebrech> benjick: yeah that sounds good. you can always put up a test page and see how it does
[14:30:36] *** mccarrontr1ck has joined #angularjs
[14:30:48] *** platonic has quit IRC
[14:31:01] *** pdillinger has joined #angularjs
[14:31:04] *** gunn has joined #angularjs
[14:31:22] <benjick> jlebrech: Yeah, but it doesn't support custom php-frameworks
[14:31:29] <benjick> So I was asking if someone had another suggestion
[14:31:29] *** Zeioth has joined #angularjs
[14:31:31] *** hswolff has quit IRC
[14:31:35] <benjick> Sorry if I didn't convey that
[14:32:09] <jlebrech> what are you rendering, json?
[14:32:31] <benjick> Angular views etc
[14:32:32] *** dannyc has joined #angularjs
[14:32:34] *** blomman has quit IRC
[14:32:43] <benjick> I have an Angular site with routing and views
[14:32:46] <benjick> I want google to index it
[14:33:10] *** blomman has joined #angularjs
[14:33:14] <deebo> ok i guess loading templates via urls when the templates contain directives that depend on link time information is not bueno
[14:33:26] *** Foxandxss has joined #angularjs
[14:33:27] *** hswolff has joined #angularjs
[14:33:28] <jlebrech> try prerendering then
[14:34:07] *** _emps is now known as EMPZ
[14:34:24] *** elxa has quit IRC
[14:34:44] *** e0ipso|away is now known as e0ipso
[14:34:48] <m8> What's the best way for file+data upload in angular? base64 encoding? i need to have cross browser compatibility
[14:34:54] *** ssawickik has quit IRC
[14:34:56] *** codeman has joined #angularjs
[14:35:04] *** jstroem has joined #angularjs
[14:35:11] *** linojon_ has joined #angularjs
[14:36:11] *** linojon has quit IRC
[14:36:11] *** linojon_ is now known as linojon
[14:36:26] *** ProLoser has joined #angularjs
[14:36:27] *** ssawickik has joined #angularjs
[14:36:31] *** cboden has joined #angularjs
[14:36:44] *** dannyc has quit IRC
[14:36:54] *** moritzs has joined #angularjs
[14:37:00] *** bkuberek has quit IRC
[14:37:01] *** walden|afk is now known as walden
[14:37:15] *** japhar81 has joined #angularjs
[14:37:36] *** Sebastien-L has joined #angularjs
[14:38:21] *** danecand_ has joined #angularjs
[14:38:51] *** tkimmel has joined #angularjs
[14:39:57] *** newUser has quit IRC
[14:40:05] *** numenor has quit IRC
[14:40:07] *** eamonn has joined #angularjs
[14:40:44] <yandos> m8: what browsers do you need to support?
[14:41:16] *** oncenull has quit IRC
[14:41:17] *** ProLoser has quit IRC
[14:41:31] <m8> ie :|
[14:41:34] <m8> <10
[14:41:41] <m8> yandos, no file api :)
[14:41:55] *** travm has quit IRC
[14:42:16] *** phzon has joined #angularjs
[14:42:38] *** sz332 has quit IRC
[14:42:53] <thomastuts> welp
[14:43:00] <thomastuts> anyone familiar with debugging angularJS performance?
[14:43:10] <thomastuts> my CPU usage is spiking to 200% for my app's tab when i interact with it
[14:43:27] <yandos> m8, i’ve used angular-file-upload it has a shim for ie 8-9
[14:43:31] *** danecand_ is now known as danecando
[14:43:58] *** oncenull has joined #angularjs
[14:44:21] *** whiteboo_ has quit IRC
[14:44:31] <m8> yandos, but i can have data+files or only data
[14:44:54] *** kp666 has quit IRC
[14:44:56] <yandos> you can pass ng-models along with the files
[14:45:52] <yandos> or anything you want really
[14:46:07] *** mogaj has quit IRC
[14:46:16] <m8> yandos, mmm
[14:46:32] <m8> but uploadAll works only if there are files
[14:46:40] *** bbankes has joined #angularjs
[14:46:41] *** toad-br has joined #angularjs
[14:47:00] <m8> base64 is a way?
[14:47:17] *** IvailoStoianov has joined #angularjs
[14:47:23] <yandos> uploadAll?
[14:47:30] *** livingstn has joined #angularjs
[14:47:44] *** rashidkpc has joined #angularjs
[14:48:08] <yandos> is this to upload files to a server or locally?
[14:48:26] *** lite has quit IRC
[14:48:36] <m8> to a server
[14:49:06] *** azizur has joined #angularjs
[14:49:45] *** Caroga_afk is now known as Caroga
[14:50:28] *** ccohn has joined #angularjs
[14:50:33] *** akrikos has joined #angularjs
[14:50:45] *** lefant has quit IRC
[14:51:18] *** c00ljs has joined #angularjs
[14:51:25] *** lsiv568 has joined #angularjs
[14:51:27] *** shinnya has joined #angularjs
[14:52:03] *** doosy has joined #angularjs
[14:52:42] <m8> yandos, uploadAll method of FileUpload
[14:52:43] *** Philipe has quit IRC
[14:52:55] *** dreambox has joined #angularjs
[14:53:18] *** laurensclaessen has quit IRC
[14:53:33] *** liri has joined #angularjs
[14:53:46] *** M8M has joined #angularjs
[14:53:49] *** MaxV has quit IRC
[14:53:52] *** jheady has joined #angularjs
[14:54:00] <yandos> I think you’re going to have to upload files one by one if you want cross browser support
[14:54:14] *** jheady has left #angularjs
[14:54:35] <yandos> angular-file-upload can be passed an array of items and supported selecting multiple files at once
[14:55:25] *** laurensclaessen has joined #angularjs
[14:55:30] *** whitebook has joined #angularjs
[14:55:40] *** BahamutWC|Laptop has joined #angularjs
[14:55:58] <yandos> i *think* for non HTML5 FormData browsers it falls back to array method
[14:56:09] <yandos> i’ve always just uploaded one by one
[14:56:29] *** jstroem has quit IRC
[14:56:31] *** M8M has quit IRC
[14:56:56] *** jstroem has joined #angularjs
[14:57:24] <darlanalves> thomastuts do you have any CSS3 animation running in the app?
[14:57:45] *** jstroem has quit IRC
[14:57:46] <thomastuts> i found the issue, i had a deep watcher on a super large collection
[14:57:54] *** travm has joined #angularjs
[14:57:55] <thomastuts> which brought the app to its knees
[14:57:56] *** johnnyghost has quit IRC
[14:58:00] *** jpstone has joined #angularjs
[14:58:05] *** dreambox has quit IRC
[14:58:11] *** jstroem has joined #angularjs
[14:58:21] *** josh-k__ has quit IRC
[14:58:48] *** josh-k has joined #angularjs
[14:58:48] *** jstroem has quit IRC
[14:58:55] <darlanalves> hmm. okay then. I had a similar issue, mine was as simple as a div hidden in the page with an animation
[14:59:17] *** jstroem has joined #angularjs
[14:59:26] *** johnnyghost has joined #angularjs
[15:00:16] *** moritzs has quit IRC
[15:00:17] *** travm has quit IRC
[15:00:42] *** eBureau has quit IRC
[15:00:50] *** laurensclaessen has quit IRC
[15:01:29] *** intellix has joined #angularjs
[15:01:31] *** josh-k has quit IRC
[15:01:35] *** whitebook has quit IRC
[15:02:22] *** darrin has joined #angularjs
[15:02:32] *** c00ljs has quit IRC
[15:02:41] *** jdj_dk has quit IRC
[15:03:37] *** jstroem has quit IRC
[15:03:38] *** laurensclaessen has joined #angularjs
[15:03:40] *** boneskull has quit IRC
[15:03:57] *** yottanami has quit IRC
[15:04:24] *** IvailoStoianov has quit IRC
[15:04:43] *** pell0 has quit IRC
[15:05:22] *** Manaus has joined #angularjs
[15:05:27] *** jillesme_ has joined #angularjs
[15:06:16] *** blomman has quit IRC
[15:06:22] *** johnnyghost has quit IRC
[15:06:23] *** mven has joined #angularjs
[15:06:42] *** caitp has quit IRC
[15:06:50] *** oncenull has quit IRC
[15:07:09] *** ssawickik has quit IRC
[15:07:45] *** jillesme has quit IRC
[15:08:20] *** pell0 has joined #angularjs
[15:08:54] *** m8 has quit IRC
[15:09:35] *** m8 has joined #angularjs
[15:09:59] *** zB0hs has joined #angularjs
[15:10:09] <m8> yandos, base64 encoding
[15:10:10] *** Siecje has joined #angularjs
[15:10:12] *** ngbot has joined #angularjs
[15:10:12] <ngbot> [angular.js] caitp pushed 2 new commits to master: http://git.io/38sFyw
[15:10:12] <ngbot> angular.js/master 0ccc4fc danielmbarlow: docs(tutorial/step_05): explain need for $httpBackend.flush in tests...
[15:10:12] <ngbot> angular.js/master 56138bd danielmbarlow: docs(tutorial/step_12): small change to overview...
[15:10:12] *** ngbot has left #angularjs
[15:10:16] *** mdedetrich has quit IRC
[15:10:30] *** _ritchie_ has joined #angularjs
[15:10:59] *** ngbot has joined #angularjs
[15:10:59] <ngbot> [angular.js] caitp pushed 2 new commits to v1.2.x: http://git.io/DGvHsg
[15:10:59] <ngbot> angular.js/v1.2.x 846fe1b danielmbarlow: docs(tutorial/step_05): explain need for $httpBackend.flush in tests...
[15:10:59] <ngbot> angular.js/v1.2.x 98da7ad danielmbarlow: docs(tutorial/step_12): small change to overview...
[15:10:59] *** ngbot has left #angularjs
[15:11:20] *** caitp has joined #angularjs
[15:11:44] *** jeffszusz has joined #angularjs
[15:11:59] *** juampy has quit IRC
[15:12:10] *** pelll0 has joined #angularjs
[15:12:16] *** lite has joined #angularjs
[15:12:23] *** FunnyLookinHat has quit IRC
[15:12:25] *** hikumealan_ has quit IRC
[15:12:30] *** ConstantineXVI has joined #angularjs
[15:12:40] *** MalteJ has quit IRC
[15:12:44] *** pell0 has quit IRC
[15:12:46] *** FIFOd[a] has joined #angularjs
[15:12:54] *** robdubya has joined #angularjs
[15:13:06] *** iksik has joined #angularjs
[15:13:47] *** VeeWee has quit IRC
[15:14:52] *** lite has quit IRC
[15:15:13] *** discgo_ has joined #angularjs
[15:15:44] *** danflies has joined #angularjs
[15:16:20] *** aendrew has quit IRC
[15:18:54] *** jillesme_ is now known as jillesme
[15:18:55] *** jillesme has joined #angularjs
[15:18:58] *** hikumealan_ has joined #angularjs
[15:20:00] *** pushpak has joined #angularjs
[15:20:03] *** nagappan_ has quit IRC
[15:20:07] *** BillCriswell has joined #angularjs
[15:20:26] *** lemur has quit IRC
[15:20:35] *** nagappan_ has joined #angularjs
[15:20:56] <lena_> is there a special reason why angular doesn't bind context of returned object to link function?
[15:21:06] *** lemur has joined #angularjs
[15:21:08] *** aendrew has joined #angularjs
[15:21:08] *** caitp has quit IRC
[15:21:16] *** SoulBlade has joined #angularjs
[15:21:42] *** nill has joined #angularjs
[15:22:16] *** caitp has joined #angularjs
[15:22:26] *** anjumkaiser has joined #angularjs
[15:23:08] *** elrabin has joined #angularjs
[15:23:26] *** johnnyghost has joined #angularjs
[15:24:23] *** zuluz has joined #angularjs
[15:25:31] *** BillCriswell is now known as morning
[15:25:47] *** SoulBlade has quit IRC
[15:25:56] *** morning is now known as BillCriswell
[15:25:58] *** jillesme_ has joined #angularjs
[15:26:27] *** matthoiland has joined #angularjs
[15:26:29] *** vassagus has joined #angularjs
[15:26:52] *** johnnyghost has quit IRC
[15:27:26] *** phuh has quit IRC
[15:27:58] <AlexZan> hey guys, what is a good way to get a whitespace inside my ng-repeat, so that my bootstrap labels that i am repeating over, are seperated by a whitespace. I can think of a few not so great ways, with an extra html element
[15:28:06] *** phuh has joined #angularjs
[15:28:37] *** jillesme has quit IRC
[15:28:41] *** Manaus has quit IRC
[15:28:48] *** doosy has quit IRC
[15:29:13] *** doosy has joined #angularjs
[15:29:30] *** MaxV has joined #angularjs
[15:29:33] *** MaxV has quit IRC
[15:29:50] *** jstroem has joined #angularjs
[15:30:00] *** michaelfavia has joined #angularjs
[15:30:15] *** bmac has joined #angularjs
[15:30:30] *** blomman has joined #angularjs
[15:30:49] *** mandric has joined #angularjs
[15:31:14] *** jstroem has quit IRC
[15:31:17] <surreal> AlexZan: What about nbsp; ?
[15:31:29] <surreal> Err, I mean &nbsp;
[15:31:36] *** c00ljs has joined #angularjs
[15:31:40] *** jstroem has joined #angularjs
[15:31:51] *** matthoiland has quit IRC
[15:32:03] *** Bauer has joined #angularjs
[15:32:41] <Bauer> guys, is there any way to generate an XLSX file (NOT CSV or anything else) from a JSON data I have in $scope? I cant find any suitable library :(
[15:33:02] *** juanpablo_ has joined #angularjs
[15:33:06] *** lsiv568 has quit IRC
[15:34:05] *** doosy has quit IRC
[15:34:06] <bd-> if there's no js library for it, then you could maybe hack something together using the google spreadsheets api
[15:34:53] <AlexZan> surreal, yeah, that was one option i thought of too, still involves an extra element though
[15:34:59] *** moritzs has joined #angularjs
[15:35:23] <AlexZan> i found a good solutoin with repeat start and end
[15:35:37] <Bauer> bd-: no one here is going to agree to send the data to processing outside the network :)
[15:36:07] *** jstroem has quit IRC
[15:36:12] <bd-> what about xlsx?
[15:36:23] <bd-> (the js library)
[15:36:35] <Bauer> which one? do you have link?
[15:36:37] <frankblizzar> can I add state params manually in ui-router?
[15:37:05] <bd-> just google 'javascript xlsx' it's first link
[15:37:09] *** ctanga has joined #angularjs
[15:37:15] <setec> wtf is xlsx
[15:37:34] <bd-> office >=2003 spreadsheet format
[15:37:58] <Bauer> xlsx is 2007 and above IIRC
[15:38:10] <surreal> AlexZan: I must be asleep. Why not tweak the CSS on the label elements to add some margin? No new HTML there.
[15:38:10] <setec> json can be transformed to xml
[15:38:20] *** _Syndicate has quit IRC
[15:38:21] *** slopjong has joined #angularjs
[15:38:24] <setec> xml can be transformed to another xmls by xslt if thats what u mean
[15:38:32] <setec> is that xlsx xml?
[15:38:56] <Bauer> setec: yes, but I need Excel's format.. which is based on XML basically, yes... but its zip of xml files, I dont want to re-invent the wheel
[15:38:58] *** bpmj has joined #angularjs
[15:39:17] <setec> i've just googled and found https://www.npmjs.org/package/icg-json-to-xlsx
[15:39:20] *** eamonn has quit IRC
[15:39:33] *** s3shs has quit IRC
[15:39:49] <setec> u just need use scalpel on https://github.com/ICGGroup/icg-json-to-xlsx/blob/master/lib/icg-json-to-xlsx.js
[15:40:01] *** krawek has joined #angularjs
[15:40:10] *** moafoca has joined #angularjs
[15:40:27] <Bauer> setec: but we are interested to generate it on client side, to save on server resources...
[15:40:29] *** eamonn has joined #angularjs
[15:40:32] *** moritzs has quit IRC
[15:40:58] *** pdillinger has quit IRC
[15:41:11] <setec> that sounds like narrow-scoped task, doubt u have all-purpose tool for that
[15:41:30] <AlexZan> surreal, yeah i guess that is the most ideal solution
[15:41:33] <AlexZan> thanks :D
[15:41:54] <bd-> that xlsx lib is clientside also
[15:42:27] <setec> it seems like it can be enhanced with zipping and storage use
[15:42:29] *** mak`` has quit IRC
[15:42:37] *** AngularUI has joined #angularjs
[15:42:37] <AngularUI> [ng-grid] c0bra pushed 2 new commits to fix-tests-1.3.0: http://git.io/IqbKHQ
[15:42:38] <AngularUI> ng-grid/fix-tests-1.3.0 ff7e3a7 c0bra: Fix grunt-ngdocs custom version
[15:42:38] <AngularUI> ng-grid/fix-tests-1.3.0 041f052 c0bra: Merge branch 'fix-tests-1.3.0' of https://github.com/angular-ui/ng-grid into fix-tests-1.3.0
[15:42:38] *** AngularUI has left #angularjs
[15:42:48] *** diosney has joined #angularjs
[15:42:59] <setec> thats not inventing wheel, thats fitting different size wheels to make them work together
[15:43:08] *** mak`` has joined #angularjs
[15:43:55] *** AviMarcus has quit IRC
[15:44:08] <tkdaj> I have this exact same code in my environment and the buttons show up like they are supposed to... for some reason when I make a plunkr the buttons don't show: http://plnkr.co/edit/AwpwqYZnos2wOFfNeB9B?p=preview
[15:44:11] <tkdaj> anyone have any ideas?
[15:44:38] *** g3funk is now known as braidn
[15:44:45] <Bauer> thanks... will see what I do
[15:45:25] *** doosy has joined #angularjs
[15:45:28] *** patrick99e99 has joined #angularjs
[15:45:45] *** FunnyLookinHat has joined #angularjs
[15:45:48] *** xastey has joined #angularjs
[15:46:32] *** doosy has quit IRC
[15:47:07] *** dejanr has joined #angularjs
[15:48:06] *** pushpak has quit IRC
[15:48:12] *** dylang has quit IRC
[15:48:17] *** lsiv568 has joined #angularjs
[15:48:25] *** stylemistake has joined #angularjs
[15:48:43] *** M8M has joined #angularjs
[15:48:50] <stylemistake> o/
[15:49:01] *** zwacky has quit IRC
[15:49:02] *** martianboy has quit IRC
[15:49:11] *** anapitupulu has quit IRC
[15:49:15] *** ClarusCogitatio has quit IRC
[15:49:25] <stylemistake> i am new to angular, i have some questions
[15:49:48] *** klaut has joined #angularjs
[15:49:54] *** ccohn has quit IRC
[15:49:58] *** xastey- has quit IRC
[15:50:03] *** ccohn has joined #angularjs
[15:50:06] *** deanclkclk_ has joined #angularjs
[15:50:18] *** SahanH has quit IRC
[15:50:19] *** borvoh has quit IRC
[15:50:21] <stylemistake> how to implement OOP pattern with angularjs?
[15:50:35] *** ClarusCogitatio has joined #angularjs
[15:50:38] *** patrick99e99 has quit IRC
[15:50:43] <stylemistake> ping
[15:50:59] <AndreasLutro> OOP is not a pattern
[15:51:04] <AndreasLutro> at best it's a collection of patterns
[15:51:24] <tangorri> anyway yo fit to content iframe ?
[15:51:36] *** bpmj has quit IRC
[15:51:36] *** mokush has joined #angularjs
[15:52:07] <stylemistake> i'll try to describe my intention
[15:52:16] *** sk87 has quit IRC
[15:52:19] *** bkuberek has joined #angularjs
[15:52:20] <stylemistake> i have some class, i.e. Event
[15:52:22] *** draconis-chomp has joined #angularjs
[15:52:43] <stylemistake> it has some attributes and a constructor
[15:52:43] *** discgo has quit IRC
[15:52:43] *** discgo_ is now known as discgo
[15:52:57] <stylemistake> that takes some parameters in
[15:52:58] *** cpciv has joined #angularjs
[15:53:12] <stylemistake> do I need to wrap it into factory?
[15:53:37] <AndreasLutro> no
[15:53:47] <stylemistake> is it angular-way to have constructors floating around in global scope?
[15:54:08] <AndreasLutro> same as in any OOP framework - if it's just an entity/DTO-like object then it's fine
[15:54:12] *** diosney has quit IRC
[15:54:30] *** deanclkclk_ has quit IRC
[15:55:03] *** prosper_ has joined #angularjs
[15:55:15] *** MaxV has joined #angularjs
[15:55:52] *** borvoh has joined #angularjs
[15:55:55] *** MaxV has quit IRC
[15:56:26] *** MalteJ has joined #angularjs
[15:56:38] <thomastuts> stylemistake: here's a really basic example: http://plnkr.co/edit/1JeU8YH1pc1nqFzPveV1?p=preview
[15:56:43] *** soee has quit IRC
[15:57:04] *** dman777_alter has joined #angularjs
[15:57:04] *** zB0hs has quit IRC
[15:57:05] *** evilaliv3 has joined #angularjs
[15:57:13] *** nycdevgirl has joined #angularjs
[15:58:00] *** mbildner has joined #angularjs
[15:58:01] <stylemistake> thomastuts: oh, that is neat
[15:58:03] *** doosy has joined #angularjs
[15:58:14] *** devinandrews has joined #angularjs
[15:58:38] *** oktapodi has quit IRC
[15:58:46] *** rtpg has quit IRC
[15:58:50] *** prosper_ has quit IRC
[15:59:17] *** shinnya has quit IRC
[15:59:25] *** jerkface is now known as LennieSmall
[15:59:51] *** drej has quit IRC
[15:59:57] *** Efrem has joined #angularjs
[16:00:16] *** ctanga has quit IRC
[16:00:36] *** qstrahl has joined #angularjs
[16:01:02] *** gurke_ has quit IRC
[16:01:29] *** zwacky has joined #angularjs
[16:01:33] *** epappas has joined #angularjs
[16:01:50] *** AndreasLutro has quit IRC
[16:02:07] *** dylang has joined #angularjs
[16:02:59] *** krawek has quit IRC
[16:03:15] *** Caroga is now known as Caroga_afk
[16:03:18] *** mokush has quit IRC
[16:03:21] *** Bade has joined #angularjs
[16:03:37] *** prosper_ has joined #angularjs
[16:03:41] *** sk87 has joined #angularjs
[16:03:51] *** prosper_ has quit IRC
[16:04:19] *** prosper_ has joined #angularjs
[16:04:30] *** enigmarm has joined #angularjs
[16:04:40] *** klaut has quit IRC
[16:05:23] *** prosper_ has quit IRC
[16:05:36] *** prosper_ has joined #angularjs
[16:05:45] *** Click66 has quit IRC
[16:06:54] *** devinandrews has quit IRC
[16:07:05] <juristr> If I have a directive with a scope parameter like scope: { myfunc: '&' } is there a way to execute "myfunc" from the link function of the directive?
[16:07:14] *** devinandrews has joined #angularjs
[16:07:23] *** oktapodi_ has joined #angularjs
[16:07:52] *** dcherman has joined #angularjs
[16:07:56] *** Bade has quit IRC
[16:08:13] *** jasonp has joined #angularjs
[16:09:32] *** deostroll has joined #angularjs
[16:10:28] *** prosper_ has quit IRC
[16:10:38] *** klaut has joined #angularjs
[16:10:53] *** klaut has quit IRC
[16:10:57] *** mokush has joined #angularjs
[16:11:03] *** prosper_ has joined #angularjs
[16:11:06] *** azizur5 has joined #angularjs
[16:11:21] *** IvailoStoianov has joined #angularjs
[16:12:14] <deostroll> I have an array of objects (arr). its bound to view1. in view2 there is a form. When it submits, it adds to arr. but the list in view1 is not updated...!
[16:12:23] *** azizur has quit IRC
[16:12:52] <deostroll> how to update view1?
[16:13:03] *** AngularUI has joined #angularjs
[16:13:03] <AngularUI> [ng-grid] c0bra pushed 2 new commits to master: http://git.io/DXclRQ
[16:13:04] <AngularUI> ng-grid/master ff79b4c Erik Sikander: Update doc on registerRowBuilder
[16:13:04] <AngularUI> ng-grid/master 69439f2 Brian Hann: Merge pull request #2004 from mathiasdose/doc-update...
[16:13:04] *** AngularUI has left #angularjs
[16:13:30] *** tomzx is now known as tomzx`afk
[16:13:41] *** rtpg has joined #angularjs
[16:13:52] *** afuggini has joined #angularjs
[16:14:22] *** AngularUI has joined #angularjs
[16:14:23] <AngularUI> [ng-grid] c0bra pushed 2 new commits to master: http://git.io/hd1INA
[16:14:23] <AngularUI> ng-grid/master bfa28b5 freein: Correct demo beacuse of exception
[16:14:23] <AngularUI> ng-grid/master 5a27e3c Brian Hann: Merge pull request #2003 from mathiasdose/demoPatch...
[16:14:23] *** AngularUI has left #angularjs
[16:14:38] *** Evil_Peach has joined #angularjs
[16:15:19] *** platonic has joined #angularjs
[16:15:26] *** jstroem has joined #angularjs
[16:15:34] <Evil_Peach> Hi guys, I have an array of 1300 JSON objects in my scope. any idea how can I export them to xlsx (not CSV) via clientside? I've tried everything...
[16:15:56] *** krawek has joined #angularjs
[16:16:08] *** xavia has joined #angularjs
[16:16:27] <Evil_Peach> Bauer: have fun on your basic driving course :)
[16:17:05] *** greengriminal has quit IRC
[16:17:12] <jlebrech> Evil_Peach: xlsx is an xml zipped up, not sure how you could zip it in clientside tho.
[16:17:16] *** lexek_ has quit IRC
[16:17:18] *** AngularUI has joined #angularjs
[16:17:19] <AngularUI> [ng-grid] c0bra tagged v3.0.0-rc.13 at 7e900be: http://git.io/Pc8XGg
[16:17:19] *** AngularUI has left #angularjs
[16:17:22] *** jeffw198____ has quit IRC
[16:17:25] *** jstroem has quit IRC
[16:17:39] *** jstroem has joined #angularjs
[16:18:10] <jlebrech> Evil_Peach: https://github.com/SheetJS/js-xlsx
[16:18:26] *** mupkoo has quit IRC
[16:18:30] *** Nizumzen has joined #angularjs
[16:18:30] *** DANtheBEASTman has quit IRC
[16:18:44] *** m8 has quit IRC
[16:18:55] *** AngularUI has joined #angularjs
[16:18:55] <AngularUI> [ng-grid] brianchance closed pull request #2010: callDataChangeCallbacks passing window to callbacks instead of grid (master...master) http://git.io/4nKAYw
[16:18:56] *** AngularUI has left #angularjs
[16:18:57] *** m8 has joined #angularjs
[16:19:04] *** ikevin_ has quit IRC
[16:19:10] <Evil_Peach> jlebrech: I've seen this lib, downloaded it today and didn't have much luck understanding what to do with it. any example?
[16:19:16] *** gnrlbzik has joined #angularjs
[16:19:33] *** syphar_ has joined #angularjs
[16:19:39] *** phishy has quit IRC
[16:19:39] *** williamtdr has quit IRC
[16:19:40] *** syphar has quit IRC
[16:19:41] *** ikevin has joined #angularjs
[16:19:42] *** phishy_ has joined #angularjs
[16:19:47] *** platonic has quit IRC
[16:19:47] *** syphar_ is now known as syphar
[16:19:53] *** williamtdr_ has joined #angularjs
[16:20:06] *** dsdeiz has quit IRC
[16:20:08] *** jstroem has quit IRC
[16:20:13] *** lele has quit IRC
[16:20:13] *** waspinator has quit IRC
[16:20:13] *** brezel has quit IRC
[16:20:33] *** jstroem has joined #angularjs
[16:20:42] *** brezel has joined #angularjs
[16:20:42] *** krawek has quit IRC
[16:20:43] <M8M> I am trying to inject json data into a class like this class="{{item.icon}}". Would this work or do I need ngclass?
[16:21:22] *** quantax- has joined #angularjs
[16:21:25] *** evilaliv3 has quit IRC
[16:21:26] <M8M> it seems to work just fine.
[16:21:44] *** mupkoo has joined #angularjs
[16:21:48] *** lsiv568 has quit IRC
[16:21:54] <Evil_Peach> M8M: should work, but you can't do any angular magic on it in the controller
[16:22:13] *** fatshark has joined #angularjs
[16:22:15] *** jstroem has quit IRC
[16:22:15] *** sikor_sxe has quit IRC
[16:22:21] *** CHC has joined #angularjs
[16:22:27] <Foxandxss> M8M: the issue with that is that the browser will try to apply a {{item.icon}} class and then the correct one
[16:22:28] *** the-anconia has joined #angularjs
[16:22:31] *** TyrfingMjolnir has joined #angularjs
[16:22:32] <Foxandxss> that is why we have ng-clasas
[16:22:35] <Foxandxss> ng-class*
[16:22:39] *** jstroem has joined #angularjs
[16:22:43] *** Constant_ has joined #angularjs
[16:22:47] *** jeffw198____ has joined #angularjs
[16:22:48] *** waspinator has joined #angularjs
[16:22:52] *** krawek has joined #angularjs
[16:22:52] *** krawek has joined #angularjs
[16:22:54] <Evil_Peach> M8M: https://www.youtube.com/watch?v=wLrGAnQOKeE brief explanation here
[16:23:00] *** pootpoot has joined #angularjs
[16:23:04] *** ozooner has joined #angularjs
[16:23:09] *** mbildner_ has joined #angularjs
[16:23:17] *** ClarusCogitatio has quit IRC
[16:23:27] *** foofoobar has quit IRC
[16:23:29] *** jstroem has quit IRC
[16:23:31] *** Ephemeral_ has joined #angularjs
[16:23:42] *** digisky1 has joined #angularjs
[16:23:44] *** danecand_ has joined #angularjs
[16:23:48] *** DANtheBEASTman has joined #angularjs
[16:23:53] <moafoca> Hello everybody, I do a plunker of my problem, that the html don't act good, anyone can explain whats wrong with scope/controller? http://plnkr.co/edit/exeQ7hbztuFvlKdVVVMs
[16:23:57] <moafoca> Thanks for all ;)
[16:24:04] *** Latros-O_ has joined #angularjs
[16:24:08] *** ClarusCogitatio has joined #angularjs
[16:24:17] <the-anconia> Is there anyway to show a Bootstrap modal within onEnter in my routes?
[16:24:25] *** ozooner__ has quit IRC
[16:24:25] *** quantax has quit IRC
[16:24:25] *** Ephemeral has quit IRC
[16:24:26] *** jstroem has joined #angularjs
[16:24:27] *** SuRfDeMoN has quit IRC
[16:24:28] *** Ephemeral_ is now known as Ephemeral
[16:24:28] *** jstroem is now known as 32NAACYUW
[16:24:29] *** mbildner has quit IRC
[16:24:30] *** Latros-OS has quit IRC
[16:24:31] *** AciD` has quit IRC
[16:24:32] *** mbildner_ is now known as mbildner
[16:24:32] *** mokush has quit IRC
[16:24:36] *** doosy has quit IRC
[16:24:37] *** SuRfDeMoN has joined #angularjs
[16:24:44] *** doosy has joined #angularjs
[16:24:44] *** ConstantineXVI has quit IRC
[16:24:45] *** danecando has quit IRC
[16:24:45] *** ccbmx has quit IRC
[16:24:55] *** mokush has joined #angularjs
[16:24:56] *** antons__ has quit IRC
[16:24:56] *** cliluw has quit IRC
[16:24:57] *** CiE has quit IRC
[16:25:23] *** danecand_ is now known as danecando
[16:25:25] *** mary5030 has joined #angularjs
[16:25:30] *** ProLoser has joined #angularjs
[16:25:31] *** cliluw has joined #angularjs
[16:25:42] *** antons__ has joined #angularjs
[16:25:51] *** CiE has joined #angularjs
[16:25:56] *** jillesme_ is now known as jillesme
[16:25:56] *** jillesme has quit IRC
[16:25:56] *** jillesme has joined #angularjs
[16:26:08] *** mary5030 has joined #angularjs
[16:26:54] *** klaut has joined #angularjs
[16:26:54] *** AngularUI has joined #angularjs
[16:26:54] <AngularUI> [ng-grid] brianchance opened pull request #2016: Fix callDataChangeCallbacks - pass grid to callback (master...master) http://git.io/Y1ko1g
[16:26:54] *** AngularUI has left #angularjs
[16:27:10] <deyna> best way to check $setValiditiy in a test?
[16:27:12] *** lsiv568 has joined #angularjs
[16:27:17] *** Constant_ has quit IRC
[16:27:24] *** AWAW has quit IRC
[16:27:25] <Evil_Peach> moafoca: you forgot to write "ng-app="TheBattle" in your body tag
[16:27:28] <deyna> check the ngModelCtrl or check the ng-invalid-{type} class?
[16:27:29] *** ConstantineXVI has joined #angularjs
[16:27:31] *** phuh has quit IRC
[16:27:32] *** AciD` has joined #angularjs
[16:27:32] <moafoca> serious?
[16:27:38] *** whitebook has joined #angularjs
[16:27:43] <M8M> Evil_Peach: thanks for the video, I just watched it
[16:27:56] *** phuh has joined #angularjs
[16:27:57] *** AWAW has joined #angularjs
[16:27:59] <moafoca> I put in html tag...
[16:28:13] <Evil_Peach> M8M: no problem, discovered them just today, good brief ones. :)
[16:28:22] *** junmin has joined #angularjs
[16:28:48] <moafoca> Evil_Peach, I have the ng-app directive!
[16:29:09] *** MaxV has joined #angularjs
[16:29:37] *** mmitchell has joined #angularjs
[16:29:50] *** ClarusCogitatio has quit IRC
[16:29:52] *** ProLoser has quit IRC
[16:29:58] *** prosper__ has joined #angularjs
[16:30:27] <Evil_Peach> moafoca: didn't know it should work that way. I think that if you put the ng-app attr before the angular script loads - it shouldn't work... try adding it to your body tag
[16:30:46] <moafoca> Yes... I always work with that tag!
[16:30:51] *** robdubya has quit IRC
[16:31:42] *** doosy has quit IRC
[16:32:03] *** AciD` has quit IRC
[16:32:04] *** AciD` has joined #angularjs
[16:32:16] *** prosper_ has quit IRC
[16:32:32] <Evil_Peach> moafoca: don't know, I write angular apps way differently - I hope you get a better answer than mine :)
[16:32:39] *** ClarusCogitatio has joined #angularjs
[16:32:58] *** robdubya has joined #angularjs
[16:33:13] <jpstone> would it make sense to create a service to pass data from controller to controller, do you don't have to do another API call
[16:33:16] <jpstone> or is there a better way
[16:33:41] <thomastuts> jpstone: nope that's about right
[16:33:44] <jpstone> ok cool
[16:33:59] <jpstone> thanks :)
[16:34:05] *** Nizumzen has quit IRC
[16:34:31] *** alinouman has quit IRC
[16:35:49] *** thomastuts has quit IRC
[16:35:52] *** klaut has quit IRC
[16:37:42] *** jstroem has joined #angularjs
[16:37:42] *** 32NAACYUW has quit IRC
[16:38:11] *** Evil_Peach has quit IRC
[16:39:28] *** lexek_ has joined #angularjs
[16:39:44] *** colljesu has joined #angularjs
[16:40:14] *** sigurding has quit IRC
[16:40:32] *** jstroem has quit IRC
[16:40:36] *** deanclkclk_ has joined #angularjs
[16:40:53] <M8M> Evil_Peach something else, I am having a heck of a time figuring out how to add and remove active class on nav menu
[16:40:55] *** tripu has quit IRC
[16:40:57] *** madhu has joined #angularjs
[16:41:00] *** jstroem has joined #angularjs
[16:41:03] *** ctanga has joined #angularjs
[16:41:06] *** Tobius has joined #angularjs
[16:41:52] <M8M> I am trying this approach - http://plnkr.co/edit/YV74mkdh24yrDWKNx6Gm?p=preview
[16:42:26] *** azizur5 has quit IRC
[16:42:37] <madhu> I work for an airline in middle east as an architect. we are gonna develop a web application for our reservation system. we are planning to use angularjs. we wil
[16:43:04] *** azizur has joined #angularjs
[16:43:13] <moafoca> The error of my code is to create a "exatrange" object in html, like main.obj.atribute
[16:44:02] <moafoca> it's wrong in html creating objects and atributes inside, without adding the dependence in controller
[16:45:31] *** optikalmouse has joined #angularjs
[16:45:40] *** _ritchie_ has quit IRC
[16:45:56] *** sikor_sxe has joined #angularjs
[16:46:26] <deyna> guys, whats the best way to check if a $http payload is correct if its form encoded and ive done the translation?
[16:46:34] *** milka has quit IRC
[16:46:55] *** madhu has quit IRC
[16:46:57] *** ClarusCogitatio has quit IRC
[16:47:33] *** deanclkclk__ has joined #angularjs
[16:48:27] *** e0ipso is now known as e0ipso|away
[16:48:40] *** dllama has joined #angularjs
[16:48:44] *** alinouman has joined #angularjs
[16:49:03] *** tomzx`afk is now known as tomzx
[16:49:14] *** michaelSharpe has joined #angularjs
[16:49:17] *** johnnyghost has joined #angularjs
[16:49:20] *** yandos has quit IRC
[16:49:40] *** ClarusCogitatio has joined #angularjs
[16:50:18] *** lele has joined #angularjs
[16:50:26] *** discgo has quit IRC
[16:50:40] <jaawerth> deyna: dev tools network tab?
[16:50:45] *** e0ipso|away is now known as e0ipso
[16:50:52] *** _TAS has joined #angularjs
[16:51:03] *** deanclkclk_ has quit IRC
[16:51:12] <deyna> was thinking more in a unit test scenario
[16:51:17] <jaawerth> ahh
[16:51:29] <deyna> i want to ensure im making a POST request with the correct json payload and the correct content type header set
[16:51:53] <deyna> $httpBackend.expectPOST?
[16:52:45] *** johnnyghost has quit IRC
[16:52:46] *** discgo has joined #angularjs
[16:53:07] *** StryKaizer has quit IRC
[16:53:12] *** favetelinguis has joined #angularjs
[16:53:19] <jaawerth> yeah, that's what I'd do
[16:53:44] *** onats has joined #angularjs
[16:54:05] *** ki0 has joined #angularjs
[16:54:06] <jaawerth> and .when to check the data
[16:54:12] *** sk87 has joined #angularjs
[16:54:18] <jaawerth> (and headers)
[16:54:39] *** anapitupulu has joined #angularjs
[16:55:14] *** umib0zu has joined #angularjs
[16:55:23] *** nachinius has joined #angularjs
[16:56:08] *** nachinius has left #angularjs
[16:56:31] *** Kay-z is now known as Codefriar
[16:58:32] *** danflies has quit IRC
[16:58:46] <jagga> herro, im using the angular-ui's datepicker but having a few issues with the display.
[16:59:05] <oniijin> mornin jaawerth
[16:59:22] <jagga> I have 2 popup datepickers, I want them next to each other but when I do so only the last datepicker's clickable button is nice and joint to the datepicker, the first's is like a separate button
[16:59:22] <jagga> http://plnkr.co/edit/ddjJZFGRSNYDymlLguxS?p=preview
[16:59:27] <jagga> on that plunker you can see what I mean
[16:59:27] <jaawerth> oniijin: and a good morning to you, sir!
[16:59:28] *** deanclkclk_ has joined #angularjs
[16:59:32] *** vassagus has quit IRC
[16:59:41] <oniijin> been raining nonstop since yesterday morning
[16:59:44] *** jaawerth has left #angularjs
[16:59:51] *** jaawerth has joined #angularjs
[16:59:56] *** bpmj has joined #angularjs
[17:00:04] *** jstroem has quit IRC
[17:00:18] *** onats has quit IRC
[17:00:23] *** vassagus has joined #angularjs
[17:00:27] <jagga> bad : http://i.imgur.com/tXStG7O.png good : http://i.imgur.com/Se3nhin.png
[17:00:52] *** jstroem has joined #angularjs
[17:00:57] <jagga> if you look at the plunkr, I'm putting them in the same bit of code as on the documentation with the exception of them being in the same row and group-input divs'
[17:01:28] *** toin0u is now known as toin0u|away
[17:01:31] *** whatadewitt has joined #angularjs
[17:01:41] *** saucey has quit IRC
[17:01:53] *** deanclkclk__ has quit IRC
[17:02:39] *** deyna has quit IRC
[17:03:11] <jagga> i guess this isnt really angular-ui specific, more bootstrap specific
[17:03:35] *** mbildner has quit IRC
[17:03:48] *** shoerain has quit IRC
[17:04:06] *** umib0zu has quit IRC
[17:04:35] *** mbildner has joined #angularjs
[17:04:49] *** cacts|wtf has joined #angularjs
[17:04:59] *** jtimon has joined #angularjs
[17:05:05] *** whitebook has quit IRC
[17:05:22] *** azizur has quit IRC
[17:05:31] *** deostroll has left #angularjs
[17:05:32] *** lexek_ has quit IRC
[17:05:34] <oniijin> y do u have multiple inputs in 1 input group
[17:06:00] *** AWAW has quit IRC
[17:06:23] <jagga> yes
[17:06:28] *** AWAW has joined #angularjs
[17:06:30] *** olivvv has joined #angularjs
[17:06:34] *** MaxV has quit IRC
[17:06:35] *** vassagus has quit IRC
[17:06:37] <olivvv> Heya.
[17:06:45] <oniijin> wasnt a yes or no question
[17:06:46] *** shoerain has joined #angularjs
[17:06:55] *** favetelinguis has quit IRC
[17:07:05] <olivvv> Is there a way to have a callback that ensure that ng-include has rendered ?
[17:07:09] <jagga> I tried that, putting them in their own input-group separates them, fixes the issue but is undesired and places them on separate lines
[17:07:11] *** favetelinguis has joined #angularjs
[17:07:13] <olivvv> similar to http://stackoverflow.com/questions/15207788/calling-a-function-when-ng-repeat-has-finished
[17:07:15] <jagga> right
[17:07:18] <jagga> I missed the y
[17:07:33] <bd-> yea, input-groups only work for 1 input
[17:07:38] <jagga> I see
[17:07:40] <olivvv> ng-repeat has $last, is there something similar for ng-include we can rely on ?
[17:07:40] <bd-> it goes all wrong if you try put more in
[17:07:53] *** monir has quit IRC
[17:08:01] <bd-> you can kinda use input-group-addons, but it's messy and doesn't work nice with buttons
[17:08:13] <oniijin> dont put a button inside a span for input group addon
[17:08:21] *** jheady has joined #angularjs
[17:08:21] <oniijin> you just end up getting a button inside of an input endcap
[17:08:32] <jagga> input endcap
[17:08:33] <bd-> but just make 2 col-xs-6 columns, then two input-group's inside those if you want them on the same line
[17:08:34] <jagga> what is that?
[17:08:44] <jagga> Alright i'll do that
[17:08:44] *** jheady has left #angularjs
[17:08:48] <oniijin> hang on let's see
[17:08:54] <oniijin> i misworded
[17:09:25] *** HelperW has quit IRC
[17:09:27] <jagga> I'm trying to use the whole col-md-3 and col-xs-6 etc
[17:09:40] <jagga> I understand that it has to add up to 12 (grid of 12 blocks and what not)
[17:09:58] *** _ritchie_ has joined #angularjs
[17:10:00] *** arthas has joined #angularjs
[17:10:07] <jagga> still new to it though :)
[17:10:15] *** conan_the_destro has joined #angularjs
[17:10:37] <bd-> jagga: http://plnkr.co/edit/m4lyfBJURTsuLzmOjUeh?p=preview
[17:10:42] <bd-> like the second one there
[17:11:00] <bd-> i have no idea why the button heights aren't matching the input's though
[17:11:10] <jagga> me neither, works fine on my app
[17:11:12] *** olivvv has quit IRC
[17:11:14] <jagga> I thought that was a little weird
[17:11:19] *** squeakytoy has joined #angularjs
[17:11:21] *** ClarusCogitatio has quit IRC
[17:11:23] <oniijin> button height is bc of glyph size
[17:11:27] <jagga> right ye
[17:11:31] *** jlebrech has quit IRC
[17:11:35] <jagga> I've got a custom glyph size on my app
[17:11:37] *** svycka has quit IRC
[17:11:42] <jagga> or wait, no I haven't
[17:12:05] <oniijin> just follow this format http://hastebin.com/osajamecax.xml
[17:12:13] *** deanclkclk_ has quit IRC
[17:12:13] <oniijin> you're mashing your col div with your input gorup div
[17:13:15] *** mica1 has joined #angularjs
[17:14:04] *** nachinius_ has joined #angularjs
[17:14:07] <jagga> osajamecax.xml
[17:14:08] <jagga> xd?
[17:14:13] *** ClarusCogitatio has joined #angularjs
[17:14:42] <jagga> right it's auto-generated by hastebin
[17:14:51] *** rho has joined #angularjs
[17:14:52] *** rho has joined #angularjs
[17:15:19] *** frankbli_ has joined #angularjs
[17:15:21] *** matthoiland has joined #angularjs
[17:15:44] <jagga> alright well cheers
[17:15:49] <jagga> that makes sense to me now
[17:16:14] *** jlebrech has joined #angularjs
[17:16:14] *** saucey has joined #angularjs
[17:16:28] *** MaxV has joined #angularjs
[17:16:46] *** mica1 is now known as mica
[17:17:02] *** gurke_ has joined #angularjs
[17:17:02] *** mica has left #angularjs
[17:17:40] <jagga> would you look at that : http://i.imgur.com/wYtqmOp.png
[17:17:44] *** frankblizzar has quit IRC
[17:17:45] <jagga> again, thanks
[17:18:00] <jagga> now it's time to fix that ugly button which should actually be a dropdown
[17:19:02] *** moritzs has joined #angularjs
[17:19:09] *** umib0zu has joined #angularjs
[17:19:46] *** icfantv has joined #angularjs
[17:20:10] *** nerder has joined #angularjs
[17:20:12] <nerder> hello
[17:20:14] *** firelinks has quit IRC
[17:20:15] *** mkc has joined #angularjs
[17:20:38] *** Una has joined #angularjs
[17:20:39] *** matthoiland has quit IRC
[17:20:46] *** artisangoose has joined #angularjs
[17:21:13] *** loverajoel has quit IRC
[17:21:26] *** danflies has joined #angularjs
[17:22:14] *** dannyc has joined #angularjs
[17:22:14] *** SoulBlade has joined #angularjs
[17:24:00] *** coffey has joined #angularjs
[17:24:03] *** ciwolsey has quit IRC
[17:24:16] <maraneta> hey guys, how can i configure my csrf token? i'm trying to post to my api from my angular app and i get a csrf token issue
[17:24:17] *** johnleee has joined #angularjs
[17:24:21] <johnleee> hello
[17:24:21] *** ciwolsey has joined #angularjs
[17:24:21] *** darlanalves has quit IRC
[17:24:33] *** stirlingw has joined #angularjs
[17:24:35] *** mzabriskie has joined #angularjs
[17:24:41] <johnleee> Is there anyways of passing data to a controller through the html tags
[17:24:46] <johnleee> say for example
[17:25:04] <oniijin> sure
[17:25:18] <johnleee> <div ng-controller="fileCtrl as ctrl" table_name="file">
[17:25:25] <oniijin> either thru ngmodel, or if using directive you can access attributes
[17:25:49] *** walden is now known as walden|brb
[17:26:09] <johnleee> I know I can do it in the controller inself
[17:26:23] <johnleee> but, at ?basedom? level?
[17:26:29] *** SoulBlade has quit IRC
[17:26:32] <johnleee> which I declare the controller?
[17:26:36] *** dannyc has quit IRC
[17:26:41] <oniijin> no idea what you're asking
[17:26:49] *** mupkoo has quit IRC
[17:27:03] <johnleee> I have a controller defined over an area
[17:27:19] *** jheady1 has joined #angularjs
[17:27:27] *** jheady1 has left #angularjs
[17:27:27] *** phuh has quit IRC
[17:27:30] *** arabot has joined #angularjs
[17:27:35] *** gnrlbzik has quit IRC
[17:27:53] *** gnrlbzik has joined #angularjs
[17:27:56] *** phuh has joined #angularjs
[17:28:06] <johnleee> <div ng-controller"x as y"> can i pass data to the controller though a tag like <div ng-controller="x as y " table_name="z">
[17:28:09] *** JohnBat26 has quit IRC
[17:28:16] *** jstroem has quit IRC
[17:29:54] <oniijin> ng-model
[17:30:04] *** jjasonclark has joined #angularjs
[17:30:06] <johnleee> ok
[17:30:11] <johnleee> ill try it out
[17:30:13] <johnleee> thank you
[17:30:15] <jaawerth> huh?
[17:30:20] *** moritzs has quit IRC
[17:30:25] <oniijin> no idea jaawerth
[17:30:45] <oniijin> err
[17:30:46] *** mchammer has quit IRC
[17:30:53] <oniijin> maybe $attrs? is that a thing =p
[17:31:13] <jaawerth> you could do that but I don't think the ngController directive is set up to listen for any other attrs set
[17:31:35] <nerder> hey guys
[17:31:53] <nerder> could u help me understanding ng-view and routes?
[17:31:54] <nerder> http://plnkr.co/edit/6IMY8h1w2xMyPi3C3YwP
[17:32:05] <oniijin> jaawerth like http://plnkr.co/edit/njwpOFYYgs90XXumUMBX?p=preview
[17:32:12] <oniijin> johnleee ^
[17:32:21] *** avree has joined #angularjs
[17:32:28] <jaawerth> d'oh, right
[17:32:32] <jaawerth> haha forgot about that
[17:32:39] <nerder> what i want to do is that, the first page displayed is http://[my_ip].com/main
[17:32:55] <oniijin> jaawerth tho dunno really y u'd do that over just ngmodel
[17:32:56] <jaawerth> even better, that lets you use $observe
[17:33:00] *** rtpg has quit IRC
[17:33:01] <nerder> and inside of this i want to have the html of what i have inside of form.html
[17:33:03] *** Una has quit IRC
[17:33:38] <jaawerth> oniijin: well, the use-case would be more about setting configuration options from the view
[17:33:42] <nerder> probably could be usefull to know that i'm using apache-tomcat
[17:34:04] *** slopjong has quit IRC
[17:34:07] <jaawerth> like maybe your controller will have a couple of different modes, you could use the attributes to set the mode
[17:34:07] <oniijin> jaawerth so not as altnertive to ngmodel
[17:34:18] <jaawerth> how would ngModel match that use case?
[17:34:20] <oniijin> ok I can see that
[17:34:33] <jaawerth> that's more about setting up two-way binding for interactive elements
[17:34:37] <oniijin> right
[17:35:07] <jaawerth> but, more like how you would use attrs in a directive to change the behavior
[17:35:20] *** scorphus has joined #angularjs
[17:35:22] <moafoca> If u want a run a function in angular with setInterval or setTimeout inside a controller, u will use a timer or smthing like that?
[17:35:27] <jaawerth> plus, $observe is so much cheaper than $watch
[17:35:27] <oniijin> i hope he saw that plnk example then
[17:35:49] <jaawerth> moafoca: huh?
[17:35:59] *** scorphus has joined #angularjs
[17:35:59] *** nemothekid has joined #angularjs
[17:36:13] <oniijin> $timeout?
[17:36:30] *** lsiv568 has quit IRC
[17:36:35] <nerder> any of you guys know something about angular-route?
[17:36:43] <jaawerth> moafoca: not sure exactly what you're asking, but typically you'd use $timeout or $interval services, unless you specifically DON'T want a digest to be triggered
[17:37:11] <moafoca> $timeout is a angular dependency, like $http?
[17:37:55] <oniijin> yes
[17:37:56] *** favetelinguis has quit IRC
[17:38:03] *** dan2k3k4 has quit IRC
[17:38:21] *** mtsr has quit IRC
[17:38:29] *** rho has quit IRC
[17:38:30] *** favetelinguis has joined #angularjs
[17:38:32] <moafoca> whats the correct name of this?
[17:38:34] <moafoca> services?
[17:38:35] <jaawerth> nerder: Yes. I don't really understand your question though
[17:38:41] *** brian has joined #angularjs
[17:38:55] <jaawerth> moafoca: Yep, services. https://docs.angularjs.org/api/ng/service/$timeout
[17:39:05] *** brian is now known as Guest4399
[17:39:13] *** Una has joined #angularjs
[17:39:17] <nerder> jaawerth: is not really a question, i'm asking if i'm doing right or not with my code that i provide
[17:39:28] <oniijin> bleh gotta venture into rain and run some errands
[17:39:39] <nerder> i think i get the logic of routing with angular, and i'm starting buliding my code from a working example
[17:39:43] *** LennieSmall is now known as cmenscher
[17:39:50] <nerder> i dnt really know what i'm missing
[17:39:52] <oniijin> use ui-router
[17:39:56] *** Una has quit IRC
[17:40:14] *** Xethron has joined #angularjs
[17:40:41] <jaawerth> nerder: you'er on the right track. ui-router is a more popular routing module, though, as oniijin said, because it's so much more powerful. It's also a bit more complicated to learn, though
[17:40:56] *** jshultz has joined #angularjs
[17:40:58] <oniijin> states made more sense to me than routes
[17:41:02] <oniijin> in context of spa
[17:41:03] <jaawerth> nerder: also worth mentioning: the fact that you're using tomcat shouldn't really matter, since angular routing is handled client-side
[17:41:11] <AlexZan> what is a good way, to handle reverting a model, or dirty/change detection in angular?
[17:41:19] <oniijin> deep copy
[17:41:23] <nerder> that's why, i need to understand a bit better the "standard" ngRoute first
[17:41:27] <jaawerth> AlexZan: ngModelController
[17:41:34] *** scorphus has quit IRC
[17:41:55] *** jheady has joined #angularjs
[17:41:57] <AlexZan> jaawerth, thanks looking at that now
[17:42:09] <nerder> jaawerth: are u sure? and why if i call 127.0.0.1:8080/myapp/main i get a 404?
[17:42:12] *** sonofdirt has joined #angularjs
[17:42:17] *** nill has quit IRC
[17:42:22] <jaawerth> nerder: are you using html5mode?
[17:42:24] *** scorphus has joined #angularjs
[17:42:28] <tkdaj> can anyone answer this question by chance: http://stackoverflow.com/questions/26762458/compile-function-problems-in-directive-angularjs
[17:42:53] <oniijin> jaawerth does rollbackviewvalue work if user cancels or something?
[17:42:56] *** favetelinguis has quit IRC
[17:43:00] *** klaut has joined #angularjs
[17:43:12] <oniijin> the way I saw it done before was to do a ngcopy on stuff, and copying it back on cancel
[17:43:17] *** jillesme has quit IRC
[17:43:26] <nerder> jaawerth: http://plnkr.co/edit/6IMY8h1w2xMyPi3C3YwP
[17:43:30] <nerder> i repaste my code
[17:43:41] <nerder> yes i'm using it
[17:44:04] <jaawerth> nerder: then you need extra server configuration. I recommend keeping it turned off at first so you can get the routing working, then turn it back on
[17:44:34] <nerder> what do you mean with "extra server configuration"
[17:44:39] *** merlinsbrain___ is now known as merlinsbrain
[17:44:46] <nerder> so you think that the code work good in this way tho?
[17:44:59] *** scorphus has quit IRC
[17:45:08] *** whitebook has joined #angularjs
[17:45:20] <jaawerth> nerder: without html5mode, your URLs have a # before your routing paths, which stop that part of the route from going to your server. That way, your index.html loads, angular bootstraps, and the client-side router takes it from there
[17:45:39] *** frankbli_ has quit IRC
[17:45:43] *** laurensclaessen has quit IRC
[17:45:47] *** scorphus has joined #angularjs
[17:46:02] <jaawerth> nerder: without that #, if you try to deep-link (IE go to that URL when you haven't already bootstrapped your app), that request hits the server directly, and your index.html will never load because the server doesn't know to
[17:46:10] *** atomatt has joined #angularjs
[17:46:17] *** jbeaudry has joined #angularjs
[17:46:21] *** blomman has quit IRC
[17:46:43] <jaawerth> nerder: the way around this is to configure your server so that example.com/app/your/route will always serve up your index.html
[17:46:47] *** MaxV has quit IRC
[17:46:53] *** patric100e99 has joined #angularjs
[17:46:55] *** blomman has joined #angularjs
[17:47:02] <jaawerth> then you can safely turn on html5mode and deep linking will work
[17:47:04] *** zB0hs has joined #angularjs
[17:47:18] *** juristr has quit IRC
[17:47:30] *** draconis-chomp has quit IRC
[17:47:30] <nerder> jaawerth: so basically you are telling me that i have to do : $locationProvider.html5Mode(false);
[17:47:37] *** prosper__ has quit IRC
[17:47:48] <nerder> and useexample.com/app/#route
[17:47:55] <jaawerth> nerder: the default is false - comment out the html5Mode line for now, play around with the routing, then re-enable it when you're ready to try configuring your server as I described
[17:48:05] <nerder> *example.com/app/!#route
[17:48:16] <jaawerth> you can configure the prefix how you like
[17:48:21] <nerder> ok lemme try ;)
[17:48:25] <jaawerth> I like the default of example.com/app/#/your/route
[17:48:41] *** Nizumzen has joined #angularjs
[17:48:42] *** scorphus has quit IRC
[17:49:00] *** tsalb has joined #angularjs
[17:49:41] <jaawerth> nerder: the only other thing you might need to do is use a <base> tag to make sure any native <a href=""> links work correctly if you don't want to have to manually add that # every time
[17:50:09] <jaawerth> I recommend not doing this initially and fiddling with the links to get a feel for it
[17:50:17] *** obs has quit IRC
[17:50:28] *** mokush has quit IRC
[17:50:30] <nerder> <base href="/"> like this right?
[17:50:48] <johnleee> ok
[17:50:49] <nerder> jaawerth: seems to work, but it go on /route all the time lol
[17:51:00] <johnleee> i have this inside a controller
[17:51:04] <johnleee> <div ng-include="'static/html/image_form.html'" ng-model="image.form1" name="company_logo" table="company">hi</div>
[17:51:04] *** patric100e99 has quit IRC
[17:51:16] *** blomman has quit IRC
[17:51:28] <johnleee> when i console the controller
[17:51:36] <johnleee> i cannot find image.form1
[17:51:39] *** jheady1 has joined #angularjs
[17:51:42] *** edy has quit IRC
[17:52:09] <johnleee> my controller tags are <div ng-controller="imageCtrl as image">
[17:52:26] <tkdaj> anyone who is good with compile in a directive?
[17:52:33] <oniijin> johnleee i posted up a different plnkr
[17:52:57] <oniijin> http://plnkr.co/edit/njwpOFYYgs90XXumUMBX?p=preview
[17:53:26] <oniijin> ok im off before it's too late. jaawerth gonna bug u bout observe and stuff when i get back. =p
[17:53:46] *** a_ghost_irl has joined #angularjs
[17:54:27] *** slopjong has joined #angularjs
[17:54:41] <jaawerth> oniijin: haha, later
[17:54:44] <tkdaj> Is there anyone in here who I would be able to help with a directive compile function questino?
[17:54:49] <jaawerth> I need ot head out for a bit too actually
[17:54:49] <tkdaj> question*
[17:55:03] <oniijin> perfect. then u wont be talkin bout stuff i wanna hear
[17:55:09] *** fbenoit has quit IRC
[17:55:32] <johnleee> so the attrs gives the controller access to the html tags?
[17:55:39] *** jheady has quit IRC
[17:55:50] <johnleee> and 'data-' prefix tells attr where to look?
[17:55:55] *** a_ghost_irl has quit IRC
[17:56:17] *** anjumkaiser has quit IRC
[17:56:32] *** ahmetkapikiran has joined #angularjs
[17:57:05] *** favetelinguis has joined #angularjs
[17:57:07] *** jheady1 has left #angularjs
[17:57:38] *** quantax- has quit IRC
[17:57:44] *** naneau has quit IRC
[17:57:51] *** mupkoo has joined #angularjs
[17:58:17] *** simplyshipley has quit IRC
[17:58:39] *** Kashinath has joined #angularjs
[17:58:45] *** oktapodi_ has quit IRC
[17:58:47] *** simplyshipley has joined #angularjs
[17:59:07] *** merobertsjr has joined #angularjs
[17:59:14] *** EMPZ is now known as _emps
[17:59:21] *** themime has joined #angularjs
[17:59:44] *** e0ipso is now known as e0ipso|away
[17:59:48] <themime> if i use controller As syntax can you then put primitives on the this operator where you would normally be putting them on the $scope?
[18:00:05] *** matthoiland has joined #angularjs
[18:00:07] *** scorphus has joined #angularjs
[18:00:14] <themime> it almost seems like what johnpapa says in his guide but i guess i don't understand how it escapes the inheritance issue
[18:00:28] *** cpciv has left #angularjs
[18:00:29] *** sheplu has quit IRC
[18:00:47] *** richiebkr has joined #angularjs
[18:01:05] *** ahmetkapikiran has quit IRC
[18:01:49] <Kashinath> Please can you provide me Web Api channel name
[18:02:33] <themime> Kashinath: webAPI? like for .net?
[18:02:41] *** Una has joined #angularjs
[18:02:43] *** ggrzybek has quit IRC
[18:02:44] *** dylang has quit IRC
[18:02:47] <Kashinath> Yes
[18:03:03] *** Guest4399 is now known as bgerami
[18:03:03] <johnleee> Hey, I just want to pass data to the controller through a html tag
[18:03:05] <johnleee> not using an input
[18:03:11] *** discgo has quit IRC
[18:03:11] <johnleee> how do i do that
[18:03:15] <Kashinath> I am looking for Web Api 2 channel
[18:03:18] <themime> Kashinath: just try joining random channels, /j .net dotnet webapi C# chsharp etc
[18:03:23] <johnleee> something like
[18:03:31] *** mchapman has joined #angularjs
[18:03:31] <Kashinath> ok
[18:03:35] <Kashinath> Thank you
[18:03:38] <themime> johnleee: i don't understand, like what kind of data?
[18:03:46] *** arthas has quit IRC
[18:03:57] *** tskaggs_ has joined #angularjs
[18:03:57] <johnleee> <div ng-model="ctrl.val=7"></div
[18:03:59] *** Gerry_ has joined #angularjs
[18:04:08] <themime> how would the user enter data into that area?
[18:04:11] *** SeeThruHead has joined #angularjs
[18:04:12] *** Gerry_ has quit IRC
[18:04:14] *** platonic has joined #angularjs
[18:04:22] *** e0ipso|away is now known as e0ipso
[18:04:27] <johnleee> wel i have a generic image picker
[18:04:45] <themime> is the image picker not an input?
[18:04:49] *** darrin has quit IRC
[18:04:52] *** platonic has quit IRC
[18:04:54] <themime> aren't they input type="file" ?
[18:04:57] <johnleee> but the image picker has no idea where it is in the form and it doesn;t know where to post the data
[18:04:59] *** platonic has joined #angularjs
[18:05:06] *** walden|brb is now known as walden
[18:05:08] <johnleee> the user wouldnt
[18:05:18] *** blomman has joined #angularjs
[18:05:48] <johnleee> i want to have multiple uses of the controller
[18:06:00] *** esk4nd4r has quit IRC
[18:06:08] <themime> could have a directive on the div instead of model, pass in stuff via attributes and use a service in the directive to upload to server
[18:06:23] <johnleee> so i need a way in html of telling the controller where it is
[18:06:24] <themime> johnleee: yea that sounds like a directive
[18:06:32] <michaelSharpe> is there any way that i can preload a view before showing it? I have media items in a list that load a pllayer when clicked on. The player is a directive that generates an iframe. I want to click the media object, show the player and have it already loaded, or at least have started the load process.
[18:06:51] *** ahmetkapikiran has joined #angularjs
[18:06:51] <johnleee> ok
[18:06:55] *** vtali has joined #angularjs
[18:06:57] <johnleee> once i build a directive
[18:07:04] <themime> michaelSharpe: you want to detect when the iframe has been loaded? i think that gets kinda tricky
[18:07:05] <johnleee> can i just write something in the html tag?
[18:07:21] *** prosper_ has joined #angularjs
[18:07:22] *** ThomasBeauvais has quit IRC
[18:07:43] <themime> johnleee: yes <div jl-image-upload></div> or <jl-image-upload></jl-image-upload>
[18:07:54] *** robdubya has joined #angularjs
[18:07:58] <johnleee> ok
[18:08:12] <johnleee> ill look that up and be back in a couple hours most likely
[18:08:13] <johnleee> thank you
[18:08:16] <themime> yep np!
[18:08:20] <michaelSharpe> themime: Not neccessarily. On end scroll on the main media index, there is a function that snaps the object to the center and triggers a callback. I was hoping I could somehow instantiate the iframe in the background so when the user clicks the media, it will already be loading.
[18:09:06] <themime> michaelSharpe: ah i see. could start the loading in the run() block
[18:09:17] <themime> or in the controller itself before the user clicks anything
[18:09:37] <themime> a parent controller
[18:09:40] *** greengriminal has joined #angularjs
[18:10:01] *** gnrlbzik has quit IRC
[18:10:24] *** gnrlbzik has joined #angularjs
[18:10:29] *** pdillinger has joined #angularjs
[18:10:44] <michaelSharpe> themime: the thing is, there are many media items. I only want the one which was 'focused' to preload, and then when clicked it opens the "show" view where it ready to go.
[18:10:45] *** whiteboo_ has joined #angularjs
[18:11:07] *** DexterTheDragon has left #angularjs
[18:11:07] *** arkin has quit IRC
[18:11:32] *** scorphus has quit IRC
[18:11:48] *** scorphus has joined #angularjs
[18:11:53] *** scorphus has joined #angularjs
[18:12:09] *** whitebook has quit IRC
[18:12:15] *** mupkoo has quit IRC
[18:12:19] *** johnleee has quit IRC
[18:12:24] <whatadewitt> ahoy! is anyone here a $q master?
[18:12:36] <robdubya> $qwhats up
[18:12:43] <whatadewitt> (or just have a good working knowledge of $q)
[18:13:00] <whatadewitt> i have a $q.all with an array of say, 100 promises
[18:13:03] *** anjumkaiser has joined #angularjs
[18:13:07] <whatadewitt> it's a file uploader uploading chunks to s3
[18:13:10] *** merobertsjr has quit IRC
[18:13:19] * themime is curious
[18:13:25] <whatadewitt> i want to be able to "pause" the $q.all
[18:13:36] <tkdaj> anyone in here good with the compile function in directives?
[18:13:55] <whatadewitt> or at the very least, in my sub promises of the 100, i can call .reject, which calls the fail function of my .all
[18:14:07] <whatadewitt> but all of the promises in the array being run by .all continue to run
[18:14:17] <bd-> .all isn't like a queue, so there's not really anything to pause
[18:14:18] <whatadewitt> seems to me that i should be able to stop those from running
[18:14:22] *** ProLoser has joined #angularjs
[18:14:29] <whatadewitt> seems like im wasting computations tho
[18:14:35] *** monir has joined #angularjs
[18:14:43] <bd-> .all just waits for all the promises you give it to be resolved
[18:14:54] *** ngbot has joined #angularjs
[18:14:54] <ngbot> [angular.js] caitp pushed 1 new commit to master: http://git.io/HNQROg
[18:14:55] <ngbot> angular.js/master dc4b065 danielmbarlow: docs(tutorial/step_12): added 'see phone-detail change'...
[18:14:55] *** ngbot has left #angularjs
[18:15:08] *** avree has quit IRC
[18:15:15] <bd-> so if you wanted to pause, you would have to pause whatever processes the promises are doing
[18:15:16] <whatadewitt> bd- ya, but when one of the promises called in .all fails, shouldnt there be a way for me to say "ok, forget about the rest of these"
[18:15:24] *** ngbot has joined #angularjs
[18:15:24] <ngbot> [angular.js] caitp pushed 1 new commit to v1.2.x: http://git.io/ytDHOg
[18:15:24] <ngbot> angular.js/v1.2.x a36863e danielmbarlow: docs(tutorial/step_12): added 'see phone-detail change'...
[18:15:24] *** ngbot has left #angularjs
[18:15:39] <bd-> well, .all doesn't do it sequentially
[18:15:47] <whatadewitt> bd- it doesnt?
[18:15:52] *** NormySan has joined #angularjs
[18:15:55] <whatadewitt> that I did not realize
[18:16:20] <whatadewitt> i mean, all im doing now is setting a flag, and in the sub-promise, i check that flag and if it's set i just reject
[18:16:35] <whatadewitt> but then if 5 of 100 have run and i reject number 6
[18:16:36] <bd-> it's just a list of promises, presumably what you're passing to it will have already started
[18:16:40] <whatadewitt> 7-100 also reject
[18:17:01] <whatadewitt> bd- understood
[18:17:03] <themime> whatadewitt: sounds like you may need to have a more manual process for more control
[18:17:10] <whatadewitt> i had believed that they ran in series
[18:17:13] <themime> basically write your own "smarter" $q
[18:17:21] *** shpoont has joined #angularjs
[18:17:25] *** optikalmouse has quit IRC
[18:17:30] <whatadewitt> themime - but i use angular because im not that smart XP
[18:17:34] *** Leon has quit IRC
[18:17:39] <jbeaudry> whatadewitt: You’d have to create an array of promises and push() pop() as they’re resolved or rejected
[18:17:48] *** lw has joined #angularjs
[18:17:48] <jbeaudry> You don
[18:17:53] <bd-> or a recursive function with .then()
[18:18:02] <jbeaudry> Or that ^
[18:18:03] <whatadewitt> bd- that was what i was actually thinking
[18:18:05] <themime> hehe starting to sound fun
[18:18:17] <whatadewitt> <3 recursion
[18:18:18] *** mkc has quit IRC
[18:18:23] <whatadewitt> i just thought $q might do this for me
[18:18:25] *** junmin_ has joined #angularjs
[18:18:31] <whatadewitt> i appreciate all the responses :D
[18:18:34] *** ProLoser has quit IRC
[18:18:39] <whatadewitt> thanks everyone
[18:19:44] *** edy has joined #angularjs
[18:19:52] *** edy has quit IRC
[18:19:52] *** edy has joined #angularjs
[18:19:58] *** kreiggers has joined #angularjs
[18:20:05] *** atomatt has quit IRC
[18:20:39] *** moritzs has joined #angularjs
[18:21:01] *** anivemin has quit IRC
[18:21:07] <bd-> whatadewitt: https://github.com/kriskowal/q
[18:21:14] <bd-> have a look down at the 'sequences' section
[18:21:16] *** jonathanpglick has joined #angularjs
[18:21:20] *** anivemin has joined #angularjs
[18:21:44] <tkdaj> anyone ever have their code not work in their environment and then you copy/paste the code you have into plunkr and it works there?
[18:21:49] <whatadewitt> bd- but this isn't the same as $q, correct?
[18:21:51] *** azizur has joined #angularjs
[18:21:56] *** atomatt has joined #angularjs
[18:22:00] *** merobertsjr has joined #angularjs
[18:22:05] *** junmin has quit IRC
[18:22:14] <bd-> i think it's mostly the same
[18:22:16] *** jacuqesdancona has quit IRC
[18:22:42] <whatadewitt> i'll give it a shot, but i thought $q was a very stripped down version of Q
[18:23:19] <bd-> ok, apparently they're not. you could just include and use actual Q if you wanted though
[18:23:23] *** nachinius_ has quit IRC
[18:23:45] <whatadewitt> bd- or i could potentially extend $q to do this
[18:23:47] <whatadewitt> appreciate the help
[18:24:05] *** Anton_ has quit IRC
[18:24:07] *** lw has quit IRC
[18:24:14] *** lw has joined #angularjs
[18:24:35] <nerder> jaawerth: still there?
[18:24:46] *** deyna has joined #angularjs
[18:24:51] *** dreambox has joined #angularjs
[18:25:03] <nerder> i'll try to do what you said, but i dnt really know if it's working or not
[18:25:14] <jaawerth> nerder: a bit immersed in work stuff at the moment, but kinda
[18:25:29] <nerder> now i move everything inside of the / of my website
[18:25:41] *** Xethron has quit IRC
[18:25:56] <nerder> yeah me too, i'm trying to fix this, just if u have time anyway :)
[18:26:12] *** vassagus has joined #angularjs
[18:26:14] <nerder> now my route is
[18:26:43] <nerder> example.com/ => shows index.html that contain ng-view
[18:26:44] *** sk87 has quit IRC
[18:26:45] *** matthoiland has quit IRC
[18:26:49] *** Siyfion has quit IRC
[18:26:57] *** doosy has joined #angularjs
[18:27:10] *** IvailoStoianov has quit IRC
[18:27:11] *** ki0 has quit IRC
[18:27:18] *** quantax- has joined #angularjs
[18:27:28] *** phuh has quit IRC
[18:27:37] *** xeoncross has joined #angularjs
[18:27:50] <nerder> and my app.js is this: https://gist.github.com/anonymous/34ba44c4be0493a56882
[18:27:52] <nickeddy> nerder: are you using ui-router?
[18:27:57] *** phuh has joined #angularjs
[18:28:12] <nickeddy> i recommend you use ui-router
[18:28:18] <nickeddy> ngRoute sucks
[18:28:18] <nerder> so i expect that when i try to navigate example.com, it gives me example.com/main right?
[18:28:27] *** doosy_ has joined #angularjs
[18:28:40] *** m8 has quit IRC
[18:28:49] *** favetelinguis has quit IRC
[18:28:51] *** doosy has quit IRC
[18:29:26] *** favetelinguis has joined #angularjs
[18:29:39] *** emlosis has joined #angularjs
[18:29:56] *** klaut has quit IRC
[18:30:07] *** bkuberek has quit IRC
[18:30:22] <nerder> i'm nickeddy i know, but i'm building this starting from a working example
[18:30:29] <nerder> that's why i'm using this one
[18:30:35] *** categoryzero has quit IRC
[18:30:37] <nickeddy> that's not a good reason to use ity
[18:30:37] *** blomman has quit IRC
[18:31:16] <oniijin> howdy
[18:31:19] *** Anton_ has joined #angularjs
[18:31:29] *** grantfunke_ has joined #angularjs
[18:31:39] *** ome has quit IRC
[18:31:44] <nickeddy> hey oniijin
[18:31:50] *** blomman has joined #angularjs
[18:31:54] <maraneta> can someone help me figure out how to set up my csrf token correctly? i can't post to my api because apparently my csrf token is missing.
[18:32:00] *** atomatt has quit IRC
[18:32:10] <nickeddy> maraneta: using django?
[18:32:42] *** atomatt has joined #angularjs
[18:32:46] <maraneta> my api uses django rest framework, yeah
[18:33:01] *** vtali has quit IRC
[18:33:02] <nerder> nickeddy: so i have to use this one? http://angular-ui.github.io/ui-router/sample/#/
[18:33:18] <maraneta> nickeddy: i'm pretty sure that my api already has a cookie, but my angular view needs to match that cookie as well if i want to post
[18:33:19] *** xeoncross has quit IRC
[18:33:20] <oniijin> we told u to use uirouter 45 minutes ago
[18:33:39] *** favetelinguis has quit IRC
[18:33:55] *** Jdubs has joined #angularjs
[18:34:45] *** doosy_ has quit IRC
[18:35:20] <digisky1> anyone here have a cross platform solution for identifying the device (replace UUID) in cordova?
[18:35:34] <nickeddy> maraneta: https://gist.github.com/nickeddy/9c5632b96f6d59726380
[18:35:42] *** Ajans has quit IRC
[18:35:43] *** esk4nd4r has joined #angularjs
[18:35:53] *** saucey has quit IRC
[18:35:56] <whatadewitt> digisky - you mean like, the device plugin?
[18:36:19] <nickeddy> digisky1: UUID is what you use...
[18:36:45] <digisky1> yeah ... I tried that but device is always undefined... not sure the documentation is lacking
[18:36:55] <nickeddy> http://ngcordova.com/docs/#Device
[18:37:41] <digisky1> Ah wth .... var device = $cordovaDevice.getDevice();
[18:37:43] *** lsiv568 has joined #angularjs
[18:37:44] *** tangorri has quit IRC
[18:37:48] *** cigarshark has joined #angularjs
[18:37:52] *** mmitchell has quit IRC
[18:38:01] <nickeddy> that's still not the uuid
[18:38:07] <nickeddy> $cordovaDevice.getUUID()
[18:38:13] *** vtali has joined #angularjs
[18:38:26] <digisky1> right ... so what about IOS ?
[18:38:35] <nickeddy> the fuck are you talking about?
[18:38:40] <nickeddy> it's cross platform
[18:38:45] <nickeddy> that works on any device
[18:38:46] <robdubya> lol
[18:38:58] <icfantv> heh
[18:39:05] <crackerzNcheez> ha
[18:39:12] <digisky1> ok great ... thanks for the fucking help asshole
[18:39:16] <nickeddy> lol
[18:39:17] *** Guest59_ has joined #angularjs
[18:39:24] <digisky1> ;)
[18:39:31] *** deyna has quit IRC
[18:39:31] *** klaut has joined #angularjs
[18:39:41] <robdubya> digisky1 you're taling about the now removed one yea?
[18:39:49] <digisky1> right
[18:40:00] *** qstrahl has quit IRC
[18:40:16] *** nairys has joined #angularjs
[18:40:21] *** loverajoel has joined #angularjs
[18:40:21] <maraneta> nickeddy: you're a lifesaver. i had that exact code, but instead of $http.defaults.headers.common, i had $http.defaults.post. everywhere i've looked says to use post, but common worked
[18:40:34] *** ogdabou has quit IRC
[18:40:59] <maraneta> nickeddy: finally got a new error message =] thanks!
[18:41:00] <nickeddy> maraneta: hahah yeah that took me awhile to figure out... not sure why they recommend .post instead of .common
[18:41:03] <nickeddy> np
[18:41:21] <maraneta> nickeddy: how on earth did you figure that out? and why doesn't post work when everyone recommends using it?
[18:41:41] *** zwacky has quit IRC
[18:41:42] *** kwd has quit IRC
[18:41:57] <jaawerth> nerder: quick example http://plnkr.co/edit/rGVM6Ekx3Ji2AX2gAXj8?p=preview
[18:42:00] <nickeddy> lots of headaches i think
[18:42:04] <jaawerth> nerder: but as mentioned, ui-router is better
[18:42:07] *** lsiv568 has quit IRC
[18:42:12] <nickeddy> but csrf can be used not only on POSTs
[18:42:22] *** vtali has quit IRC
[18:42:34] *** intellix has quit IRC
[18:42:39] <robdubya> digisky1 not sure there' a super good solution really
[18:42:40] <nerder> jaawerth: i'm watching tutorial just right now of ui-router, and i can see that is better
[18:42:46] *** optikalmouse has joined #angularjs
[18:42:54] <robdubya> haven't looked in a while, but whats the native iOS solution as of today?
[18:43:01] *** epappas has quit IRC
[18:43:07] *** phzon has quit IRC
[18:43:30] *** RobinBAwesome has joined #angularjs
[18:43:31] *** whatadewitt has quit IRC
[18:43:35] *** reported has joined #angularjs
[18:43:36] <nycdevgirl> hey
[18:43:42] *** blomman has quit IRC
[18:43:49] *** klaut has quit IRC
[18:43:59] *** Jdubs has quit IRC
[18:44:23] <digisky1> Well I know there is the AdvertiserID or whatever but what I found was in Obj-C
[18:44:28] <robdubya> digisky1 last i checked, you can get a unique ID per install from cordova
[18:44:42] <robdubya> but not per device (that is, if you delete app and reinstall, new uuid)
[18:44:48] <digisky1> right
[18:44:58] <digisky1> yeah that will have to work...
[18:45:19] <nycdevgirl> hey guys, bit of a newb here… question i have this already in my code $scope.getCurrentUser = Auth.getCurrentUser;
[18:45:20] <nycdevgirl> I'm trying to add this $scope.hasMessage = $scope.getCurrentUser.id.requests —but its unsuccesful, can anyone explain why when i console.log($scope.getCurrentUser) it returns the function in Auth.getCurrentUser
[18:45:30] *** Mahonar^ has joined #angularjs
[18:45:39] <nickeddy> you have to call the function..
[18:45:41] <robdubya> @caitp when are y'all gonna merge ng-conf submissions? the suspense is killing meeee
[18:46:07] <nickeddy> nycdevgirl: also can we get a plnkr or something? hard to tell what you're talking about
[18:46:13] *** atomatt has quit IRC
[18:46:21] *** Mahonar has quit IRC
[18:46:44] *** ayesian has joined #angularjs
[18:46:53] *** shampine has joined #angularjs
[18:46:59] <caitp> merge ng-conf submissions?
[18:47:19] <digisky1> I'll probably have to track install ID's and associate them with the login to make it harder to cheat the system.
[18:47:26] <nickeddy> robdubya: you going to ng-conf?
[18:47:49] *** moafoca has quit IRC
[18:48:01] *** denny009 has joined #angularjs
[18:48:19] *** iribarne has joined #angularjs
[18:48:27] *** wallerdev has joined #angularjs
[18:48:36] *** moafoca has joined #angularjs
[18:48:54] <denny009> hello all I've a directive that do var childScope = scope.$new() and scope.build(childScope); it works well but I want to store the orginal $scope. HOw I can do it?
[18:49:04] *** cohitre has joined #angularjs
[18:49:14] *** mupkoo has joined #angularjs
[18:49:15] <nycdevgirl> https://gist.github.com/anonymous/779315433eb1f716ce0b
[18:49:30] <BahamutWC|Work> robdubya: that’s not handled by the angular team I think :P
[18:49:36] *** cthrax has joined #angularjs
[18:49:39] <nycdevgirl> i think you fixed the prob though
[18:49:43] *** hecatonicosachor has joined #angularjs
[18:49:45] <nickeddy> nycdevgirl: yeah i still can't tell what Auth.getCurrentUser is or does though...
[18:49:48] *** Mahonar^ has quit IRC
[18:50:07] <robdubya> caitp never mind
[18:50:10] <robdubya> i'm tarded
[18:50:49] <tkdaj> I have a directive which dyanmically adds page numbers to the bottom of a table depending on the amount of rows. I am using the compile function in the directive to accomplish this. Since the dynamically added html uses an ng-repeat, I have to return a link function from the compile function which assigns some information to a scope variable so that the ng-repeat can render the information correctly. Does anyone know how to do this without polluting the
[18:51:12] *** Mahonar has joined #angularjs
[18:51:42] *** diegoaguilar has joined #angularjs
[18:51:45] *** Guest59_ has quit IRC
[18:52:13] *** prosper__ has joined #angularjs
[18:52:14] *** prosper_ has quit IRC
[18:52:14] <nycdevgirl> nickeddy: Auth.getCurrentUser is just a function that tells you the current user so I though I should be able to access its properties by adding $scope.getCurrentUser.id.requests
[18:52:26] *** shpoont has quit IRC
[18:52:53] *** IvailoStoianov has joined #angularjs
[18:52:55] *** sacho_ has quit IRC
[18:54:18] *** rho has joined #angularjs
[18:54:18] *** rho has joined #angularjs
[18:54:20] <nickeddy> nycdevgirl: well you have to call the fn to get whatever it returns. so $scope.getCurrentUser().id.requests, so long as getCurrentUser() returns {id: {requests: []}} or something similar
[18:54:36] *** snapwich has joined #angularjs
[18:55:05] <tkdaj> is there a way to fill in a {{}} in the DOM with information in a directive without sharing scope with a parent controller?
[18:55:16] *** jlebrech has quit IRC
[18:55:16] <nycdevgirl> nickeddy: when i try that it says object is not a function
[18:55:32] *** Mahonar has quit IRC
[18:55:46] *** Jdubs has joined #angularjs
[18:55:49] <nickeddy> nycdevgirl: as i said, i can't really tell what's going on without seeing more context in the form of code. try and get a plnkr working
[18:56:16] *** moritzs has quit IRC
[18:56:21] <nycdevgirl> nickeddy: not really sure how haha
[18:56:33] <nickeddy> http://plnkr.co/edit/tpl:FrTqqTNoY8BEfHs
[18:56:38] *** e0ipso is now known as e0ipso|away
[18:57:40] *** jareddlc has joined #angularjs
[18:57:47] <nickeddy> who controls the channel title?
[18:57:52] *** shpoont has joined #angularjs
[18:58:06] *** bkuberek has joined #angularjs
[18:59:34] <nickeddy> caitp: the plnkr in the title doesn't exist anymore
[18:59:58] *** Aliks has joined #angularjs
[19:00:01] <caitp> you mean this? http://plnkr.co/edit/tpl:FrTqqTNoY8BEfHs9bB0f
[19:00:15] <nickeddy> oh did i not copy it
[19:00:16] *** Kashinath has quit IRC
[19:00:16] <nickeddy> stupid
[19:00:27] <nickeddy> nvm :)
[19:00:38] *** mrded has quit IRC
[19:00:49] *** prosper__ has quit IRC
[19:00:59] <nycdevgirl> nickeddy: does this help http://plnkr.co/edit/JiFbITdxWE6pOmn1BbYL?p=preview
[19:01:04] *** emmesswhy has joined #angularjs
[19:01:05] *** dejanr has quit IRC
[19:01:07] *** IanOlson has joined #angularjs
[19:01:13] *** mkc has joined #angularjs
[19:01:18] *** fdv has joined #angularjs
[19:01:32] *** krawek has quit IRC
[19:02:03] *** jheady has joined #angularjs
[19:02:14] *** sacho_ has joined #angularjs
[19:02:22] *** tech2 has quit IRC
[19:02:49] *** BobbieBarker__ has joined #angularjs
[19:02:51] *** ccohn_ has joined #angularjs
[19:03:12] *** jjasonclark has quit IRC
[19:03:20] *** jayne has quit IRC
[19:03:40] *** klaut has joined #angularjs
[19:03:41] *** rtpg has joined #angularjs
[19:03:43] *** BobbieBarker_ has quit IRC
[19:03:43] *** BobbieBarker has quit IRC
[19:03:46] *** denny009 has quit IRC
[19:03:58] *** SomeKittens has joined #angularjs
[19:04:25] *** walden is now known as walden|lunch
[19:04:54] *** Sjimi has quit IRC
[19:05:14] *** Roots47 has joined #angularjs
[19:05:31] *** hecatonicosachor has quit IRC
[19:05:32] *** ccohn has quit IRC
[19:05:47] <Roots47> Hey, if you have an error handler and also a catch block when dealing with a promise. Will one trump the other? Or will both run in the case of a rejection?
[19:05:53] *** MrBaboon has joined #angularjs
[19:06:04] *** whunt has joined #angularjs
[19:06:08] *** jheady2 has joined #angularjs
[19:06:19] *** jheady2 has left #angularjs
[19:06:22] *** Mahonar has joined #angularjs
[19:06:46] *** bkuberek has quit IRC
[19:07:12] *** esk4nd4r has quit IRC
[19:07:57] *** jayne has joined #angularjs
[19:08:09] *** dylang has joined #angularjs
[19:08:32] *** emlosis has quit IRC
[19:08:33] *** rtpg has quit IRC
[19:08:40] *** shanemhansen has joined #angularjs
[19:08:44] *** kirfu has joined #angularjs
[19:08:50] <fdv> hi. I'm trying to get a datepicker-popup (from angular-ui) to display a date with a "correct" format, but I only get a standard string representation. At http://angular-ui.github.io/bootstrap/, there is a working example, but I can't seem to get my plunkr (http://plnkr.co/edit/WV0SkHtbd097ui0ZKtlo?p=preview) to work the same way. any ideas?
[19:08:52] *** jheady has quit IRC
[19:09:02] *** bolloga has quit IRC
[19:09:08] *** klaut has quit IRC
[19:09:16] *** zemanel has quit IRC
[19:09:17] <opus_> Hello!
[19:09:20] *** kirfu has left #angularjs
[19:09:42] *** deyna has joined #angularjs
[19:09:53] *** reported_ has joined #angularjs
[19:10:04] *** nerder has quit IRC
[19:10:08] *** williamtdr_ is now known as williamtdr
[19:10:14] *** MrBaboon has quit IRC
[19:10:19] *** jstroem has joined #angularjs
[19:10:20] *** johnleeee has joined #angularjs
[19:10:25] <johnleeee> hey
[19:10:39] <johnleeee> how do i pass a directive data through its html tags
[19:10:41] <crackerzNcheez> opus?
[19:10:46] *** Mahonar has quit IRC
[19:10:55] *** reported has quit IRC
[19:10:59] <johnleeee> I have <image-picker></image-picker>
[19:11:03] *** dannyc has joined #angularjs
[19:11:21] <johnleeee> and i want to let image picker know where to send its data when it is done
[19:11:24] *** darlanalves has joined #angularjs
[19:11:29] *** lsiv568 has joined #angularjs
[19:12:13] <johnleeee> so id like to do something like <image-picker table=customerx>
[19:12:30] *** AngularUI has joined #angularjs
[19:12:30] <AngularUI> [bootstrap] Squ34k3rZ opened pull request #2932: Update datepicker.js (master...patch-2) http://git.io/lqcqxA
[19:12:30] *** AngularUI has left #angularjs
[19:12:41] *** bengillies has quit IRC
[19:12:48] <johnleeee> and then from the controller have a $http{POST to customerx}
[19:12:57] *** vtali has joined #angularjs
[19:12:59] <shanemhansen> Hey I'm new to angular and I'm interested in documenting my services, ideally in an ide-friendly way. Is there a standard in angularjs world for doing so?
[19:13:00] <shanemhansen> http://jsfiddle.net/bsghLx2n/
[19:13:10] *** deyna has quit IRC
[19:13:20] <shanemhansen> All google searches for angularjs docs return unhelpful results in this case : (
[19:14:38] *** Roots47 has quit IRC
[19:14:38] *** garbanzio has joined #angularjs
[19:15:18] *** TheAceOfHearts has joined #angularjs
[19:15:25] *** KernelCurry has joined #angularjs
[19:15:29] *** dannyc has quit IRC
[19:16:42] *** ciwolsey has quit IRC
[19:17:43] *** mjs2600 has quit IRC
[19:18:08] *** mjs2600 has joined #angularjs
[19:18:08] *** rho has quit IRC
[19:18:55] *** mjs2600 has quit IRC
[19:19:24] *** mjs2600 has joined #angularjs
[19:19:28] *** RobinBAwesome has quit IRC
[19:20:10] *** lw has quit IRC
[19:21:00] *** RobinBAwesome has joined #angularjs
[19:21:13] *** dejanr has joined #angularjs
[19:21:38] *** gabriel__ has joined #angularjs
[19:22:01] *** AtomicCookie has joined #angularjs
[19:22:15] *** rho has joined #angularjs
[19:22:15] *** rho has joined #angularjs
[19:22:19] *** JohnBat26 has joined #angularjs
[19:22:33] *** esk4nd4r has joined #angularjs
[19:22:43] *** mjs2600 has quit IRC
[19:22:45] *** qdk has quit IRC
[19:22:51] *** d4rklit3 has joined #angularjs
[19:23:00] *** mvovchak has joined #angularjs
[19:23:10] *** klaut has joined #angularjs
[19:23:14] *** deyna has joined #angularjs
[19:23:14] *** SoulBlade has joined #angularjs
[19:23:18] *** moritzs has joined #angularjs
[19:23:19] *** afuggini has quit IRC
[19:23:54] *** mjs2600 has joined #angularjs
[19:23:59] *** ngbot has joined #angularjs
[19:24:00] <ngbot> [angular.js] caitp pushed 1 new commit to master: http://git.io/rpeMwA
[19:24:00] <ngbot> angular.js/master 74981c9 Igor Minar: feat(ngMock): decorator that adds Scope#$countChildScopes and Scope#$countWatchers...
[19:24:00] *** ngbot has left #angularjs
[19:24:28] <mvovchak> I have kind of an organizational question. I'm organizing my folders by feature. I have a folder called users - with subfolders add, create, list. add and create share the same template.html. Im not sure what is the best to put the template in this case
[19:24:30] *** codeman has quit IRC
[19:24:42] *** gabriel__ has quit IRC
[19:26:25] *** klaut has quit IRC
[19:26:52] *** stephanbuys has joined #angularjs
[19:27:31] *** mjs2600 has quit IRC
[19:27:33] *** phuh has quit IRC
[19:27:40] <stephanbuys> hi all, I need to pass a second parameter to a angular directive. it uses $parse, can someone help me with the syntax?
[19:27:47] *** mjs2600 has joined #angularjs
[19:27:57] *** phuh has joined #angularjs
[19:28:08] *** SoulBlade has quit IRC
[19:28:17] *** lsiv568 has quit IRC
[19:29:28] *** dcherman has quit IRC
[19:29:31] *** cohitre has quit IRC
[19:29:36] *** avree has joined #angularjs
[19:29:55] *** dcherman has joined #angularjs
[19:30:24] *** cohitre has joined #angularjs
[19:30:33] *** fedenunez has quit IRC
[19:31:09] <johnleeee> hey how do i pass a variable to a directive
[19:31:15] <johnleeee> throgh a html tag?
[19:31:23] *** aendrew has quit IRC
[19:31:30] *** lsiv568 has joined #angularjs
[19:31:32] <johnleeee> say <image-picker value=x>
[19:31:53] <johnnyfive> johnleeee, my first google result: http://fdietz.github.io/recipes-with-angular-js/directives/passing-configuration-params-using-html-attributes.html
[19:32:30] *** avree has quit IRC
[19:32:34] *** esk4nd4r has quit IRC
[19:32:36] <johnnyfive> stephanbuys, you can pass as many arguments as you want, just follow the link I just pasted
[19:33:08] *** avree has joined #angularjs
[19:33:09] *** rbs has joined #angularjs
[19:35:11] *** esk4nd4r has joined #angularjs
[19:35:18] *** aendrew has joined #angularjs
[19:35:37] <stephanbuys> johnnyfive: I think I was a big vague, I'm using https://github.com/keyscores/angular-dcjs, there is a paramater "dc-group", the origin dc.js API specifies that chart.Group has an optional second parameter, I was just wondering if I could pass it in along the lines: <div dc-group="param1,param2" …>
[19:35:53] *** azizur has quit IRC
[19:36:01] *** orbsio has joined #angularjs
[19:36:21] *** emmesswhy has quit IRC
[19:36:54] <johnleeee> hey that worked!
[19:36:56] <johnleeee> thnks
[19:37:20] *** poolside has joined #angularjs
[19:37:33] *** matisoffn has joined #angularjs
[19:37:53] *** charuru has joined #angularjs
[19:38:02] *** Johnny13371337 has joined #angularjs
[19:38:23] *** doginal has joined #angularjs
[19:38:41] *** e0ipso|away is now known as e0ipso
[19:39:31] *** michaelfavia has quit IRC
[19:39:32] <johnnyfive> stephanbuys, That i'm not sure. I know, you could, however create a function in the controller that turned var result = [param1, param2], and just pass result in <div dc-group="result">
[19:39:34] *** SeeThruHead has quit IRC
[19:39:44] *** frankblizzar has joined #angularjs
[19:39:47] <johnnyfive> that might be the wrong way, but off the top of my head it makes sense
[19:40:12] *** iribarne_ has joined #angularjs
[19:40:22] *** eamonn has quit IRC
[19:40:29] <stephanbuys> thanks - I'll try that
[19:40:34] *** MrBaboon has joined #angularjs
[19:40:54] *** arpu has quit IRC
[19:41:52] *** basiclaser_ has quit IRC
[19:42:28] *** willcumbie has joined #angularjs
[19:42:35] *** iribarne has quit IRC
[19:42:35] *** iribarne_ is now known as iribarne
[19:42:41] *** frankblizzar has quit IRC
[19:43:48] *** mkc has quit IRC
[19:44:04] *** tplaner has joined #angularjs
[19:44:06] *** freeman42 has joined #angularjs
[19:44:27] *** agrajag42 has quit IRC
[19:44:28] *** orbsio has quit IRC
[19:44:44] *** prosper_ has joined #angularjs
[19:45:06] *** jjasonclark has joined #angularjs
[19:45:09] *** frankblizzar has joined #angularjs
[19:45:10] <tplaner> hey guys, is there a best practice with working with $location alongside $routeParams, they're sometimes out of sync
[19:45:28] *** willcumbie has left #angularjs
[19:45:40] *** jstroem has quit IRC
[19:45:42] <tplaner> like should you only be working with one or the other?
[19:46:18] *** jstroem has joined #angularjs
[19:47:12] <alinouman> guys here two green color div has one pixel difference couldn't find it http://premiumvoices.nl/all-reviews
[19:47:27] *** wisefool has joined #angularjs
[19:47:41] *** oktapodi has joined #angularjs
[19:47:50] *** masterphi has joined #angularjs
[19:48:22] *** AngularUI has joined #angularjs
[19:48:22] <AngularUI> [ng-grid] c0bra tagged v3.0.0-rc.14 at bd12ee1: http://git.io/3V76og
[19:48:22] *** AngularUI has left #angularjs
[19:48:58] *** dan2k3k4 has joined #angularjs
[19:49:15] *** ozooner has quit IRC
[19:49:22] <tplaner> alinouman: the div on the left has a percentage width
[19:49:40] *** dan2k3k4 has quit IRC
[19:49:47] <johnnyfive> tplaner, "Note that the $routeParams are only updated after a route change completes successfully. This means that you cannot rely on $routeParams being correct in route resolve functions. Instead you can use $route.current.params to access the new route's parameters."
[19:50:00] <snurfery> nice.
[19:50:06] *** woah has joined #angularjs
[19:50:06] *** deyna has quit IRC
[19:50:38] <tplaner> johnnyfive: awesome, thanks a lot
[19:50:42] *** anjumkaiser has quit IRC
[19:51:03] *** codeman has joined #angularjs
[19:51:10] <alinouman> tplaner, percentage shouldnt have any effect i guess
[19:51:20] <tplaner> alinouman: sure it will
[19:51:59] <alinouman> tplaner, so should i make it fix width
[19:52:41] *** oktapodi has quit IRC
[19:53:14] *** MacWinner has joined #angularjs
[19:53:44] <tplaner> alinouman: actually, you need to make both views-field float:left; instead of display:inline-block;
[19:53:51] <tplaner> just remove display:inline-block
[19:53:58] *** anjumkaiser has joined #angularjs
[19:54:05] <alinouman> tplaner, okay thanks
[19:55:44] *** diegoaguilar has quit IRC
[19:55:46] *** michaelfavia has joined #angularjs
[19:56:29] <wisefool> does anyone know when using ngRoute if there is a way to remove the hashtag for just the root page (just /)
[19:57:00] *** blomman has joined #angularjs
[19:58:12] <tplaner> wisefool: https://docs.angularjs.org/guide/$location -- look for html5mode
[19:58:13] *** Sontakey has joined #angularjs
[19:58:16] *** jstroem has quit IRC
[19:58:18] <maraneta> does anyone use django rest framework? i'm having trouble posting/putting an imagefield to my api. i get the error '"No file was submitted. Check the encoding type on the form."
[19:58:20] *** nemothekid has quit IRC
[19:58:57] *** jbeaudry has quit IRC
[19:59:03] *** tech2 has joined #angularjs
[19:59:22] *** gnrlbzik has quit IRC
[19:59:59] *** night-owl is now known as zz_night-owl
[20:00:53] *** jstroem_ has joined #angularjs
[20:01:22] *** jheady has joined #angularjs
[20:02:04] *** mclenithan has joined #angularjs
[20:02:16] *** KernelCurry has quit IRC
[20:02:41] *** KernelCurry has joined #angularjs
[20:02:57] *** zanea|away is now known as zanea
[20:03:16] *** ProLoser has joined #angularjs
[20:04:05] <garbanzio> maraneta: http://stackoverflow.com/questions/16937581/no-file-was-submitted-check-the-encoding-type-on-the-form
[20:04:09] *** saucey has joined #angularjs
[20:04:17] *** icarus75 has quit IRC
[20:04:38] *** lw has joined #angularjs
[20:04:41] *** d0ngz has quit IRC
[20:05:03] *** patrick99e99 has joined #angularjs
[20:05:05] *** Una has quit IRC
[20:05:41] *** ctanga_ has joined #angularjs
[20:06:03] *** zeroquake has joined #angularjs
[20:06:22] *** zeroquake has quit IRC
[20:06:23] *** ctanga has quit IRC
[20:06:23] *** ctanga_ is now known as ctanga
[20:06:24] <icfantv> anyone know how an undefined would get sent to the server via $http? does it get converted to null?
[20:06:28] *** zeroquake has joined #angularjs
[20:06:56] *** xMopxShell has quit IRC
[20:07:05] *** gunn has quit IRC
[20:07:18] *** hell_razer has joined #angularjs
[20:07:53] *** mkc has joined #angularjs
[20:07:55] *** josh3336 has joined #angularjs
[20:08:00] *** ProLoser has quit IRC
[20:08:17] *** xMopxShell has joined #angularjs
[20:08:23] *** scythe__ has quit IRC
[20:08:39] *** mkc has quit IRC
[20:08:43] <maraneta> garbanzio: that didn't work for me. would it be because i'm using a modelserializer
[20:08:53] *** zeroquake has quit IRC
[20:08:56] *** sk87 has joined #angularjs
[20:09:16] *** grogs has joined #angularjs
[20:09:19] <themime> icfantv: an undefined what?
[20:09:19] *** zeroquake has joined #angularjs
[20:09:38] *** DLSteve has joined #angularjs
[20:09:40] *** cthrax has quit IRC
[20:10:03] *** gunn has joined #angularjs
[20:10:34] *** whitebook has joined #angularjs
[20:10:45] *** jillesme has joined #angularjs
[20:10:45] *** jillesme has joined #angularjs
[20:11:02] *** melmoussaoui has joined #angularjs
[20:11:27] *** sk87 has quit IRC
[20:11:31] <icfantv> themime: { foo: undefined, bar: 'bat' }
[20:11:33] *** sirkitree|afk is now known as sirkitree
[20:11:55] <cboden> Is there any way I can cancel an $http request in progress?
[20:12:00] *** jstroem_ has quit IRC
[20:12:00] <icfantv> themime: TECHNICALLY, that is the same as this: { bar: 'bat' }
[20:12:02] *** hell_razer has quit IRC
[20:12:15] <icfantv> cboden: have you looked at the $http API?
[20:12:20] *** mruzekw has joined #angularjs
[20:12:28] <themime> icfantv: are you receiving via .get() or is your server getting bad data via .post() ?
[20:12:29] <snurfery> anyone use closure compiler with angular?
[20:12:36] *** jstroem has joined #angularjs
[20:12:39] *** MalteJ has quit IRC
[20:12:49] <cboden> icfantv: yes, I have it open. I don’t see anything about cancel and the promise API doesn’t have a cancel method either
[20:13:07] <snurfery> I just found out about it, I was poking around at how to make it more difficult to snatch my app's code
[20:13:07] <icfantv> cboden: http://stackoverflow.com/questions/13928057/how-to-cancel-an-http-request-in-angularjs
[20:13:17] *** whiteboo_ has quit IRC
[20:13:18] <icfantv> themime: i'm not. i was just curious
[20:13:34] <icfantv> themime: and this would be sending JSON up to the server
[20:13:54] <themime> icfantv: im confused now about what the issue is
[20:13:57] <icfantv> snurfery: are you using it to compress?
[20:14:21] <cboden> interesting….that seems to merely separate the promise from the response - it doesn’t actually cancel the XHR though does it?
[20:14:23] <icfantv> themime: heh. no worries. i was just wondering what would happen if you sent something in a JSON object up to the server and it's value was undefined.
[20:14:32] <icfantv> cboden: you can't
[20:14:34] <snurfery> haven't used it yet, I was just looking at it and maybe uglifyjs for compression/obfuscation
[20:14:36] <themime> icfantv: oooh. it entirely depends on how you implement your backend
[20:14:44] <icfantv> cboden: well, not easily
[20:15:04] <icfantv> cboden: you could write code on your server to listen for cancel requests and cancel some operation in progress based on that.
[20:15:12] <icfantv> cboden: but that would require another request.
[20:15:40] <icfantv> themime: really? $http doesn't convert it or remove it from the JSON object?
[20:15:47] <themime> cboden: cancel it how?
[20:15:51] <cboden> thanks icfantv: I guess your suggestion of replacing the promise and ignoring the response will work
[20:16:07] *** lw has quit IRC
[20:16:14] <icfantv> cboden: but know that whatever the request kicked off on the server would still be running
[20:16:21] <icfantv> cboden: you're just ignoring the response
[20:16:30] *** robdubya has quit IRC
[20:16:32] <themime> icfantv: i don't think so. my experience with .net stuff i used would make it result in complete removal, i figured it was the server cutting it out
[20:16:39] <icfantv> cboden: as i said, you would have to write additional code on your server to make that process cancellable
[20:16:56] *** iribarne_ has joined #angularjs
[20:16:58] <cboden> themime: XMLHTTPRequest has the abort() method
[20:17:15] *** jstroem has quit IRC
[20:17:23] <icfantv> themime: i would tend to agree that cutting it out is the right answer, but how would the server know since undefined is a J/S thing.
[20:17:29] *** melmoussaoui has quit IRC
[20:17:43] *** bkuberek has joined #angularjs
[20:17:49] <icfantv> cboden: i think that's probably the same thing as ignoring the promise's response
[20:17:56] <themime> icfantv: i don't understand what youre asking
[20:18:04] *** blomman has quit IRC
[20:18:06] *** grogs has quit IRC
[20:18:13] <cboden> icfantv: AFAIK xmlhttprequest.abort() closes the underlying socket connection
[20:18:22] <icfantv> cboden: again, once the server receives the request, there's little you can do short of coding in cnacel functionality
[20:18:29] <masterphi> c0bra: What's ng-grid for?
[20:18:33] *** tristanp has quit IRC
[20:18:33] <themime> cboden: with abort() if cancel it and its already out, the browser just ignores the response
[20:18:35] <icfantv> cboden: but again, if the server already received the request, that does nothing
[20:18:45] *** jbeaudry has joined #angularjs
[20:18:57] *** iribarne has quit IRC
[20:18:57] *** iribarne_ is now known as iribarne
[20:18:58] <icfantv> cboden: yea, what themime said (that was way more clear)
[20:18:58] *** junmin has joined #angularjs
[20:19:13] <icfantv> themime: eh, don't worry about it. it's not really imporrtant. iw as just curious
[20:19:14] <themime> if you cancel it*
[20:19:17] <cboden> icfantv: theoretically if a reverse proxy notices the socket closing it could cancel the running process handling the request
[20:19:21] *** jaznow has quit IRC
[20:19:35] *** thedodd has joined #angularjs
[20:19:53] *** jamesalbuquerque has joined #angularjs
[20:19:57] <cboden> (I’m alost just curious and theorizing now, the timeout promise swap thingie will meet my needs)
[20:20:01] <icfantv> snurfery: we don't have a business need for closure, but i imagine we would minifiy/obfuscate our JS if our UI's were publically accessible
[20:20:02] *** krawek has joined #angularjs
[20:20:02] *** krawek has joined #angularjs
[20:20:04] <cboden> alost = also
[20:20:08] <c0bra> masterphi: grids
[20:20:22] *** prosper_ has quit IRC
[20:20:26] *** ki0 has joined #angularjs
[20:20:31] * snurfery nods
[20:20:46] *** ninkotech has quit IRC
[20:20:46] <themime> icfantv: look up what the $http call represents - the data is really just a query string, it depends on your language forms the body of the request i guess? im not sure how $http or jquery do it exactly. i haven't experimented enough with it to know for sure
[20:20:47] *** jamesalbuquerque is now known as Shilon
[20:20:55] *** ninkotech has joined #angularjs
[20:21:05] <masterphi> c0bra: yeah, i just found the link to http://ui-grid.info/ on the repo. Reading it through. Seems perfect for what i was looking for :)
[20:21:12] <icfantv> cboden: not sure how else to word this so it sinks in. once the server receives the request, there is nothing you can do short of building in cancel functionality. if the browser has not yet sent the request, it may be possible to cancel, i don't know that the $http API exposes the abort method
[20:21:16] <themime> er rather: how the server receives it i think would depend on how you form the request and send it
[20:21:16] *** iribarne_ has joined #angularjs
[20:21:29] *** corehook has joined #angularjs
[20:21:47] *** junmin_ has quit IRC
[20:21:50] <Shilon> anyone works with rubyonrails and angularjs?
[20:21:50] *** corehook has quit IRC
[20:21:54] <icfantv> themime: i could easily test it by injecting an undefined value and logging the request on the server to see what happens
[20:21:56] <themime> cboden: unless youre using websockets, the socket will close anyway i believe
[20:22:26] <themime> icfantv: depends on how you convert the data object into a query string
[20:22:42] *** yelvert has joined #angularjs
[20:23:09] *** iribarne has quit IRC
[20:23:09] *** iribarne_ is now known as iribarne
[20:23:13] *** lw has joined #angularjs
[20:23:23] *** walden|lunch is now known as walden
[20:23:35] *** kakashiAL has joined #angularjs
[20:23:39] *** nemothekid has joined #angularjs
[20:23:42] <themime> icfantv: i think at the base level thats what it is - you can have ?emptyVar=&val=3&otherEmpty=&anotherVal=123 -> this could be an outcome
[20:23:47] <icfantv> cboden: https://github.com/angular/angular.js/pull/1623
[20:24:17] *** whitebook has quit IRC
[20:24:27] <icfantv> themime: yea, and if you have foo=&bar=bat i think foo is just null
[20:24:27] *** ki0 has quit IRC
[20:24:31] *** ctanga has quit IRC
[20:24:46] <icfantv> but null could be a value depending on your server side code.
[20:24:56] <themime> icfantv: haha yea well it would depend on the server language i guess. php probably null, node may be undefined as well, or null
[20:25:01] <kakashiAL> I have a delete button with an function which deletes an entry from my list
[20:25:03] <kakashiAL> does angular brings a kind of conformation so you you have to click yes or no?
[20:25:06] <icfantv> like differentiating between the user leaving a field blank and the empty string
[20:25:22] *** woah has quit IRC
[20:25:34] *** patrick99e99 has quit IRC
[20:25:45] *** fedenunez has joined #angularjs
[20:25:48] <themime> kakashiAL: theres $modal but people don't seem to like that and end up making their own solution. beyond that i don't have much experience with it. toaster may support that kind of thing
[20:25:50] <c0bra> masterphi: great! it's in beta so there's plenty that's broken / missing
[20:25:51] <icfantv> kakashiAL: do you mean: 1) click button, 2) prompt user for deletion, 3) if yes, delete item?
[20:26:06] <icfantv> yea, $modal is awful
[20:26:22] *** avree has quit IRC
[20:26:28] <Shilon> anyone knows a toturial on how to fetch rails db data into angular controllers?
[20:26:34] <icfantv> we use toasters. but for confirmations, we just use the built in browser confirm() function
[20:26:52] <masterphi> c0bra: cool. I'll get my front end engineers to give it a try. Maybe they can even help you on it.
[20:26:56] *** Slowintrepid has joined #angularjs
[20:27:14] <icfantv> Shilon: is the db server side?
[20:27:32] *** phuh has quit IRC
[20:27:45] <Shilon> icfantv: im using activeadmin, yes it will be
[20:27:57] *** whitebook has joined #angularjs
[20:28:01] *** phuh has joined #angularjs
[20:28:10] <cboden> icfantv: This is going way beyond practicality and into theory now….but if the client makes a request and the server is processing it (slow DB lookup, RPC calls, etc) the connection remains open. I’m not sure how xrh.abort behaves but IF it acts as a way to just close the connection the server could catch the event and terminate its processing. Again, beyond my needs, I’ll use the $http timeout property with a promise to “cancel” the request.
[20:28:23] <Slowintrepid> Quick question, does anyone know why $resource doesn't have a PUT method by default? (I know how to add it, I'm just curious the reasoning why)
[20:28:54] <davek> Slowintrepid, I believe $save uses PUT as appropriate, no?
[20:29:02] *** lsiv568 has quit IRC
[20:29:14] <Slowintrepid> $save is POST no?
[20:29:20] <Slowintrepid> at least in the current app I'm working on
[20:29:41] *** marcjs has quit IRC
[20:30:01] <Shilon> icfantv: the thing is, I have my rails app and now I’ve create some templates with ng-route and i want to add rails data into my templates, but I can’t. I’m still new at this :/
[20:30:02] <davek> The logical thing would be to use POST if the resource does not have an id associated with it and PUT if it does. Either way, there is also a trend within REST APIs to use only POST/GET.
[20:30:10] *** saucey has quit IRC
[20:30:26] *** michaelfavia has quit IRC
[20:30:28] *** esk4nd4r has quit IRC
[20:30:33] <Slowintrepid> Thanks davek that's what I was thinking regarding the REST api trend
[20:30:37] <icfantv> Shilon: and i don't know rails at all.
[20:30:48] *** jheady has quit IRC
[20:31:06] <Slowintrepid> My thinking was POST w/ ID = update POST w/o ID = create
[20:31:30] *** vtali has quit IRC
[20:31:42] *** phzon has joined #angularjs
[20:31:57] *** nya has quit IRC
[20:32:10] *** nya has joined #angularjs
[20:32:13] *** Joe_knock has joined #angularjs
[20:32:27] *** michaelfavia has joined #angularjs
[20:32:27] *** michaelfavia has joined #angularjs
[20:32:45] *** ki0 has joined #angularjs
[20:33:15] *** lsiv568 has joined #angularjs
[20:33:37] *** diosney has joined #angularjs
[20:33:38] *** tristanp has joined #angularjs
[20:33:43] *** diosney has quit IRC
[20:34:02] *** krigbaum has quit IRC
[20:34:07] *** Oddman has joined #angularjs
[20:34:50] *** TheAceOfHearts has quit IRC
[20:35:01] *** blomman has joined #angularjs
[20:35:27] *** CodeTroth has joined #angularjs
[20:36:06] *** jjasonclark has quit IRC
[20:36:21] *** phzon has quit IRC
[20:36:32] *** emmesswhy has joined #angularjs
[20:36:37] <wisefool> tplaner: ended up having to add a patch, if html5 was on it still always added /#/ to the end of the url, https://github.com/caitp/angular.js/commit/09bf754f28abd0ae80601922a4341c3cb130d456
[20:36:42] <wisefool> thx
[20:36:59] *** phaggood has joined #angularjs
[20:38:13] *** ki0 has quit IRC
[20:38:42] *** ozooner has joined #angularjs
[20:38:47] *** ConstantineXVI has quit IRC
[20:39:47] <dreambox> anyone using the MeanJS stack here? Been trying to make a service work unsuccesfully since days
[20:40:06] <phaggood> i’ve used it, wht’s the prob
[20:40:21] *** jheady has joined #angularjs
[20:40:34] <caitp> @wisefool I believe such a patch is landing soon
[20:40:34] *** hell_razer has joined #angularjs
[20:40:38] <caitp> petebacondarwin is working on it
[20:41:35] *** sonofdirt has quit IRC
[20:42:13] *** robdubya has joined #angularjs
[20:42:26] *** emmesswhy has quit IRC
[20:42:56] *** jstroem has joined #angularjs
[20:43:08] *** ozooner_ has joined #angularjs
[20:43:11] *** sirkitree is now known as sirkitree|afk
[20:43:13] *** jheady1 has joined #angularjs
[20:43:46] *** ngbot has joined #angularjs
[20:43:47] <ngbot> [angular.js] caitp pushed 1 new commit to master: http://git.io/ocxuGA
[20:43:47] <ngbot> angular.js/master da96054 Kent C. Dodds: docs(guide/Running in Production): ng-strict-di...
[20:43:47] *** ngbot has left #angularjs
[20:43:57] *** ozooner has quit IRC
[20:44:06] *** Nijikokun has quit IRC
[20:44:07] *** krawchyk has joined #angularjs
[20:44:10] *** PrinceAMD has quit IRC
[20:44:42] *** jheady has quit IRC
[20:44:56] *** fourq is now known as salesforce
[20:45:06] *** salesforce is now known as lowcard
[20:45:07] *** hippobottamus has joined #angularjs
[20:45:09] *** mtsr has joined #angularjs
[20:45:12] <dreambox> phaggood: I'm generating a service, its creating the file, I make just a dummy return function (method), I go to my controller, put it in the dependencies, call the service : serviceName.somemethod() and I get undefined...
[20:45:23] *** lowcard is now known as salesforcekin
[20:45:27] <dreambox> phaggood: I can paste you the controller and the factory
[20:45:31] *** salesforcekin is now known as fourq
[20:45:50] *** davek has quit IRC
[20:45:59] <phaggood> cna u put in pastebin? http://pastebin.com/
[20:46:01] *** fourq is now known as amber112
[20:46:05] *** gnrlbzik has joined #angularjs
[20:46:06] *** amber112 is now known as fourq
[20:46:18] *** fourq is now known as bre
[20:46:20] *** RobinBAwesome has quit IRC
[20:46:23] *** bre is now known as fourq
[20:46:51] <dreambox> phaggood: the factory/service: https://gist.github.com/0b19d0f5c26cbc24aa6b , the controller: https://gist.github.com/7831f4173cfe2b01e428
[20:46:52] *** Joe_knock is now known as Joe_knock_afk
[20:47:01] *** fourq is now known as godrod
[20:47:07] *** godrod is now known as fourq
[20:47:40] *** jillesme has quit IRC
[20:47:47] *** fourq is now known as amber99O4
[20:47:52] *** amber99O4 is now known as fourq
[20:48:34] *** basiclaser_ has joined #angularjs
[20:49:11] *** jillesme has joined #angularjs
[20:49:24] *** rosieres has quit IRC
[20:49:30] *** fourq is now known as jesus_christ
[20:49:37] *** jesus_christ is now known as fourq
[20:49:41] *** annlewis has joined #angularjs
[20:50:02] *** doginal has quit IRC
[20:50:46] *** pushpak has joined #angularjs
[20:51:21] <phaggood> dreambox rather than calling Getlocationcoords directly when instantiated, I like to collect all my ftns for a controller in an init
[20:51:37] *** doginal has joined #angularjs
[20:51:40] <phaggood> at top of controller : $scope.result = false;
[20:51:40] <dreambox> phaggood: that's a best practice, but why is it throwing undefined? :(
[20:52:26] *** sheplu has joined #angularjs
[20:52:40] <icfantv> kakashiAL: please contact me through the forum, thanks
[20:52:57] *** klaut has joined #angularjs
[20:53:45] <phaggood> that’s what’s confusing, it’s appears correct: what happens when you inspect service Getlocationcoords
[20:53:58] <dreambox> phaggood: inspect?
[20:54:35] *** mupkoo has quit IRC
[20:54:40] <kakashiAL> icfantv: yes this is what I mean
[20:55:00] <phaggood> in brower dev tools, put break at Getlocationcoords.someMethod(), see if Getlocationcoords has your method
[20:55:24] *** stephanbuys has quit IRC
[20:55:34] *** prosper_ has joined #angularjs
[20:55:40] <dreambox> ok, done, let's see.
[20:56:01] *** doug64k has quit IRC
[20:56:02] <phaggood> also maybe the minification protection doesn’t like 0 params, get rid of the [ ] ‘s
[20:56:09] *** mtsr has quit IRC
[20:56:44] *** TheAceOfHearts has joined #angularjs
[20:56:48] *** lw has quit IRC
[20:56:51] *** one0one has joined #angularjs
[20:57:00] <dreambox> phaggood: I reomve the [] and I replace it with something else?
[20:57:03] <icfantv> kakashiAL: yea, i'd just do if (confirm("are you sure you want to wear that outfit?")) { console.log('ok, but you look like a fool'); } else { console.log('yea, it's hideous, don't wear it.') }
[20:57:09] *** JimD has joined #angularjs
[20:57:10] *** ctanga has joined #angularjs
[20:57:16] <phaggood> no, just remove [ ]
[20:57:19] *** danflies has quit IRC
[20:57:20] *** patrick99e99 has joined #angularjs
[20:57:34] <dreambox> removed but still the same undefined.. I ll inspect, where/what do I look?
[20:57:44] <phaggood> angular.module('messages').factory('Getlocationcoords',
[20:57:44] <phaggood> function() { .. };
[20:57:46] <kakashiAL> icfantv: okay, I thought that angular has something automaticaly
[20:57:49] <icfantv> kakashiAL: that will use the browser's native confirm dialog box. it's not fancy, but it works ant it's easy
[20:58:17] *** prosper_ has quit IRC
[20:58:21] <JimD> Hi All, hope you can help, I'm developing a hybrid site, parts are angular Single page app, parts are legacy (whilst i get around to replacing them in SPA), the problem i'm having is URLS are all trying to load via single page app, is there a way to stop angular trying to load a page using ajax
[20:58:23] <icfantv> kakashiAL: UI? no. straight up angular doesn't have any UI elements i'm aware of. angular-ui does.
[20:58:30] <jcool> I have a directive that I built for multiple date pciker. Now when I use it it works but at same time throws error which links me to:https://docs.angularjs.org/error/$compile/nonassign?p0=fixure-date&p1=myDatePicker
[20:58:50] <jcool> link to directive: http://hastebin.com/iqogutidas.php
[20:59:11] *** jbeaudry has quit IRC
[20:59:17] *** klaut has quit IRC
[20:59:29] <dreambox> phaggood: you forgot the closing )
[20:59:36] <icfantv> kakashiAL: and there are others. angular-ui is where $modal comes from
[20:59:47] <kakashiAL> icfantv: ahh okay
[20:59:48] <dreambox> I'm in the inspector but I don't know what to look for
[20:59:51] *** dannyc has joined #angularjs
[21:00:16] *** vdrizzle-work has joined #angularjs
[21:00:28] <phaggood> hover over the Getloctioncoords servcce, does it list your method?
[21:00:31] <dreambox> Getlocationcoords.someMethod(); TypeError: undefined is not a function
[21:00:32] <phaggood> someMethod
[21:01:02] <dreambox> phaggood: are we talking about the Chrome Web Tools? Or Node-Inspector?
[21:01:06] <icfantv> kakashiAL: ngDialog looks promising, but i've not used it
[21:01:20] *** danflies has joined #angularjs
[21:02:22] *** klaut has joined #angularjs
[21:02:22] *** fedenunez has quit IRC
[21:02:39] *** gnrlbzik has quit IRC
[21:02:39] <phaggood> menu->tools->developer tools
[21:02:59] *** gnrlbzik has joined #angularjs
[21:03:04] <dreambox> phaggood: yes yes :) I am there.. you say "hover over the service" you mean in the source code? NOthing happens when I hover over the code (sources panel)
[21:03:14] *** gnrlbzik has joined #angularjs
[21:03:35] <phaggood> is there a break point on that line?
[21:03:42] <dreambox> phaggood: I can upload the latest code to Heroku and u can see urself
[21:03:47] <kakashiAL> icfantv: okay, I thought that there are something easy like "ng-confirm="do you realy want to?" ng-confirm-action="delete()"
[21:03:50] <dreambox> phaggood: I mean the whole application
[21:03:53] *** jillesme has quit IRC
[21:04:08] <phaggood> line 7 at https://gist.github.com/anonymous/7831f4173cfe2b01e428#file--L7
[21:04:10] <vdrizzle-work> can anyone help? I'm playing around with ngMessages but I dont know why my messages show right away http://plnkr.co/edit/8XbuoeLW2HvKoNiXOXqa?p=preview
[21:04:26] *** jillesme has joined #angularjs
[21:04:31] *** GreenJello has joined #angularjs
[21:04:39] <dreambox> phaggood: ah ok ! I was putting the breakpoint in the service itself. OK I got it
[21:04:41] *** dannyc has quit IRC
[21:05:04] <icfantv> kakashiAL: not as part of core angular. i just found this: https://gist.github.com/brunovianarezende/8437155
[21:05:12] <dreambox> function Resource(value){ shallowClearAndCopy(value || {}, this);}
[21:05:14] <dreambox> phaggood: I put a bpoint on the someMethod() line, I get:
[21:05:19] <icfantv> kakashiAL: you can implement your own ng-confirm - VERY easy really
[21:05:32] <kakashiAL> icfantv: I know
[21:05:37] <kakashiAL> thats not the problem :)
[21:05:51] <dreambox> phaggood: and when I hover over the method it says undefined.
[21:05:53] *** jeffisabelle has quit IRC
[21:06:09] <dreambox> phaggood: I am thinking it has to do with the Generator and how Meanjs Is structured : I think there's some dependency problem,
[21:06:21] *** jeffisabelle has joined #angularjs
[21:06:24] <phaggood> you have teh serivce module declared in index.html right?
[21:06:32] *** robdubya has quit IRC
[21:06:35] <dreambox> phaggood: for example, maybe I should also include a dependency in the service towards the controller?
[21:06:45] <dreambox> phaggood: the file?
[21:07:12] <dreambox> phaggood: the file is there yes, MeanJS handles that automatically, it parses all folders and extracts the modules/services/controllers and loads them dynamicallyt
[21:07:16] *** vtali has joined #angularjs
[21:07:20] *** vampi-the-frog has joined #angularjs
[21:07:24] <vdrizzle-work> can anyone help? I'm playing around with ngMessages but I dont know why my messages show right away http://plnkr.co/edit/8XbuoeLW2HvKoNiXOXqa?p=preview
[21:07:42] *** jtimon has quit IRC
[21:07:48] *** iribarne has quit IRC
[21:07:49] <dreambox> phaggood: this is the entire code . The AngularJS is in public/
[21:07:53] *** ConstantineXVI has joined #angularjs
[21:07:53] <dreambox> phaggood: https://github.com/gkatsanos/isawu
[21:08:24] <vampi-the-frog> hey guys, I'm using ng-click="" on some <button>s, but the buttons seem to be submitting the form they're part of. is ngClick supposed to prevent that, or should I add $event.preventDefault() ?
[21:08:41] *** Sebastien-L has quit IRC
[21:08:53] *** cornerma1 has joined #angularjs
[21:08:57] <vdrizzle-work> vampi-the-frog: use type="button"
[21:09:02] *** anjumkaiser has quit IRC
[21:09:20] <vampi-the-frog> ah, I see
[21:09:23] *** JimD has quit IRC
[21:09:25] <vampi-the-frog> it seems the default is type="submit"
[21:09:26] <vampi-the-frog> thanks
[21:09:32] <vdrizzle-work> np
[21:10:34] <vdrizzle-work> can anyone help? I'm playing around with ngMessages but I dont know why my messages show right away http://plnkr.co/edit/8XbuoeLW2HvKoNiXOXqa?p=preview
[21:10:34] <dllama> whats the correct way of watching a promise inside a directive?
[21:11:05] *** mtsr has joined #angularjs
[21:11:40] *** jheady1 has left #angularjs
[21:11:45] *** lsiv568 has quit IRC
[21:12:03] *** cornerman has quit IRC
[21:12:13] *** cornerma1 is now known as cornerman
[21:12:21] *** Oddman has quit IRC
[21:12:27] *** shampine_ has joined #angularjs
[21:12:36] *** stephanbuys has joined #angularjs
[21:12:55] <phaggood> i don’t see factory is named ‘’Getlocationcoords’, just factory Messages’
[21:13:05] <maraneta> if i have an array of objects (json), what's the fastest way i can concatenate all the text from a certain field in all of those objects?
[21:13:06] *** Sebastien-L has joined #angularjs
[21:13:07] <phaggood> isawu / public / dist / application.js
[21:13:21] *** jumpman has joined #angularjs
[21:13:30] *** slopjong has quit IRC
[21:13:39] <phaggood> which has a Resource just like your earlier note
[21:14:13] *** AngularUI has joined #angularjs
[21:14:13] <AngularUI> [ng-grid] PaulL1 pushed 2 new commits to master: http://git.io/usskxg
[21:14:13] <AngularUI> ng-grid/master 17238b5 unknown: Fix callDataChangeCallbacks - pass grid to callback
[21:14:13] <AngularUI> ng-grid/master 8d86b06 Paul: Merge pull request #2016 from brianchance/master...
[21:14:13] *** AngularUI has left #angularjs
[21:14:26] <dreambox> phaggood: hm, I think this was generated automatically by Grunt?
[21:14:59] <phaggood> k well maybe you need to re-run the grunt task to rename Message to Message?
[21:15:03] *** shpoont has quit IRC
[21:15:07] <phaggood> to Getlocationcoords
[21:15:16] <patrick99e99> hi angular friends... im a little depressed.. it seems angular does not give you a way to trash a directive and re-render one...
[21:15:18] <phaggood> srry i couldn’t help, gotta go.
[21:15:20] <patrick99e99> is there a way to do this?
[21:15:25] *** phaggood has quit IRC
[21:15:27] *** siddart has quit IRC
[21:15:31] <patrick99e99> a custom directive I mean..
[21:15:38] <dreambox> phaggood: no you already helped a lot :) it's probably a duplicate code in there
[21:15:43] *** SeeThruHead has joined #angularjs
[21:15:52] *** tplaner has quit IRC
[21:15:53] <patrick99e99> if I just want to do element.remove(), how can I make angular regenerate a new directive in its place?
[21:16:01] *** icarus75 has joined #angularjs
[21:16:05] *** mupkoo has joined #angularjs
[21:16:12] <patrick99e99> I tried doing element.parent().append(element.clone())
[21:16:22] <patrick99e99> but there are no bindings and its all jacked up...
[21:16:39] *** aendrew has quit IRC
[21:16:54] *** whunt has quit IRC
[21:17:21] *** iribarne has joined #angularjs
[21:17:24] <the-anconia> Has anybody used VividCortex’s angular-recaptcha?
[21:17:26] *** walbert has left #angularjs
[21:17:33] <vdrizzle-work> can anyone help? I'm playing around with ngMessages but I dont know why my messages show right away http://plnkr.co/edit/8XbuoeLW2HvKoNiXOXqa?p=preview
[21:17:42] <patrick99e99> I even tried doing ng-if="foo" on my directive, and then doing scope.foo = undefined; scope.foo = true; .. and that didnt work
[21:17:42] *** walbert has joined #angularjs
[21:18:15] *** livingstn has quit IRC
[21:18:18] *** moafoca has quit IRC
[21:18:27] *** jmverges has quit IRC
[21:19:28] *** nemothekid has quit IRC
[21:19:59] *** alexw has joined #angularjs
[21:20:04] *** macobo has quit IRC
[21:20:37] *** ctanga has quit IRC
[21:20:43] *** ayesian has quit IRC
[21:21:12] *** sonofdirt has joined #angularjs
[21:21:59] <sacho_> what are you trying to do
[21:22:12] *** \du has quit IRC
[21:22:13] *** lw has joined #angularjs
[21:22:19] *** jonathanpglick has quit IRC
[21:22:25] *** lw has quit IRC
[21:23:02] *** lw has joined #angularjs
[21:23:29] <patrick99e99> sacho_: I am trying to remove a directive which is a table of content and repopulate a new table...
[21:23:34] <dreambox> hey guys, someone ? I can't get my service/factory method to run.. (undefined)
[21:23:46] *** eamonn has joined #angularjs
[21:23:47] <oniijin> plunk it
[21:23:49] <patrick99e99> sacho_: it's incredibly sloppy to have to make my directive reset all its internal stuff, it will be much cleaner to just start from scratch
[21:23:53] *** jonathanpglick has joined #angularjs
[21:23:54] <dreambox> the factory/service: https://gist.github.com/0b19d0f5c26cbc24aa6b , the controller: https://gist.github.com/7831f4173cfe2b01e428
[21:23:55] <patrick99e99> and I cant believe angular doesn't make this easier to do
[21:24:01] *** ben_dev has joined #angularjs
[21:24:14] <vdrizzle-work> So I added ng-if and that hides the messages now if I leave the form blank and submit it both messages show up instead of only the required message
[21:24:22] *** cthrax has joined #angularjs
[21:24:32] <vdrizzle-work> http://plnkr.co/edit/8XbuoeLW2HvKoNiXOXqa?p=preview
[21:24:38] <Grokling> patrick99e99: It does, you're just thinking like a jQuery hacker. Make a plunker..
[21:24:56] *** rhp has joined #angularjs
[21:24:59] <dreambox> oniijin: I know it will work when plunked , I used factories before once or twice, but this is a MeanJS project, very complex stack with config variables etc. https://github.com/gkatsanos/isawu
[21:25:09] *** mchapman has quit IRC
[21:25:10] *** bkuberek has quit IRC
[21:25:40] *** anjumkaiser has joined #angularjs
[21:25:55] <doginal> hey guys, i wrote a factory to set/get a conversion rate for a currency but it seems to always default to zero on load or to NaN. heres the code http://pastebin.com/By3gxEFh and i am calling the getCurrencyRate function in my controller before anything. it seems like the getJson isnt returning before load finishes.
[21:26:10] <patrick99e99> Grokling: no.. if you have a directive and do: ng-if="foo", and your controller does scope.foo = undefined; scope.foo = true.. nothing happens after it gets removed.. UNLESS you do a stupid $timeout(function () { scope.foo = true; }, 0).. which is just so dumb
[21:26:23] *** fornax has joined #angularjs
[21:27:04] *** MalteJ has joined #angularjs
[21:27:31] *** phuh has quit IRC
[21:27:34] *** JohnBat26 has quit IRC
[21:27:45] <sacho_> what do you want scope.foo = undefined to do?
[21:27:53] <vdrizzle-work> can anyone help me with form validation why do I get all messages instead of the corresponding message when validation fails? http://plnkr.co/edit/8XbuoeLW2HvKoNiXOXqa?p=preview
[21:27:59] *** phuh has joined #angularjs
[21:28:20] *** Owner__ has joined #angularjs
[21:28:41] *** jonathanpglick has quit IRC
[21:28:43] <Grokling> patrick99e99: Still I say "make a plunker".
[21:28:46] *** eamonn has quit IRC
[21:28:46] *** zep has joined #angularjs
[21:28:49] *** Guest41062 has joined #angularjs
[21:29:10] *** AngularUI has joined #angularjs
[21:29:10] <AngularUI> [ng-grid] c0bra pushed 1 new commit to fix-tests-1.3.0: http://git.io/jv8pXw
[21:29:10] <AngularUI> ng-grid/fix-tests-1.3.0 a35a930 c0bra: Update site index page to angular 1.3
[21:29:11] *** AngularUI has left #angularjs
[21:29:11] *** disorder20 has joined #angularjs
[21:29:17] *** Guest41062 has quit IRC
[21:29:17] <dreambox> Grokling: thats your answer for everything isnt it :)
[21:29:36] <dreambox> Grokling: you ask people to transfer huge projects in plunker, this takes horus man
[21:29:37] *** shampine_ has quit IRC
[21:29:38] <dreambox> horus
[21:29:42] <dreambox> hours*
[21:29:46] <Grokling> dreambox: It's not the answer, but it's the swiss army knife of getting things solved.
[21:29:51] *** doug64k has joined #angularjs
[21:29:56] <dreambox> Grokling: no its not man
[21:30:02] *** bkuberek has joined #angularjs
[21:30:10] <oniijin> if u cant replicate your issue without copying your entire project, then either your issue is truly massive, or you're doing it wrong
[21:30:17] <dreambox> Grokling: I know that if I reduce a problem to 1 paramter, I ll fix it, but thats not the real life case of th eproblem
[21:30:25] *** e0ipso is now known as e0ipso|away
[21:30:27] <dreambox> Guys ...
[21:30:32] *** marcjs has joined #angularjs
[21:30:33] <dreambox> We're not all building hello world apps here.
[21:30:51] <oniijin> so you're the first person in this chann to build a "real" app?
[21:31:02] *** IvailoStoianov has quit IRC
[21:31:03] <Grokling> dreambox: NO.. I have never, and never will ask anyone to transfer a big project into Plunker. That's just stupidity. I will ask that they think critically about the problem, and replicate it in the most concise way possibly while still replicating their issue. In plunker, so we can interact with it.
[21:31:05] *** coffey has quit IRC
[21:31:11] <patrick99e99> Grokling: too much work... not worth it.. my biggest complaint with angular are all the times you have to do $timeout(function(){}, 0)... just feels so gross and ugly
[21:31:13] *** jonathanpglick has joined #angularjs
[21:31:13] *** Greed has joined #angularjs
[21:31:18] <oniijin> Grokling +1
[21:31:18] *** wallerdev has quit IRC
[21:31:19] <dreambox> no but see this repo and tell me how many horus you would need to put it in plunker : https://github.com/gkatsanos/isawu
[21:31:24] *** Guest69634 has quit IRC
[21:31:30] <oniijin> not all of that is related to your issue
[21:31:33] <dreambox> 6 controllers, 5 services, 5-6 dependencies
[21:31:36] *** bkuberek has quit IRC
[21:31:36] <sacho_> patrick99e99, who said you have to do that?
[21:31:43] <Grokling> 1 problem..
[21:31:50] <dreambox> oniijin: sure, but my plunker wont be functional if I dont put all there
[21:31:54] *** zz_night-owl is now known as night-owl
[21:31:56] <vdrizzle-work> can anyone help me with form validation why do I get all messages instead of the corresponding message when validation fails? http://plnkr.co/edit/8XbuoeLW2HvKoNiXOXqa?p=preview
[21:32:04] <oniijin> we're not saying replicate your APP
[21:32:05] * hiptobecubic does wish plunker had an upload feature
[21:32:07] <sacho_> dreambox, you're missing the point of sscce
[21:32:07] <oniijin> replicate your ISSUE
[21:32:10] *** mandric has quit IRC
[21:32:10] <dreambox> and when I attempted to do it , I got "your plunk doesn't wor"
[21:32:10] *** matisoffn has quit IRC
[21:32:14] <Grokling> dreambox, in one sentence, describe your current issue.
[21:32:15] <dreambox> work*
[21:32:15] <sacho_> dreambox, http://sscce.org/
[21:32:25] <tkdaj> can a directive share variables with the scope in the compile stage, but then have an isolated scope in the linking stage?
[21:32:34] *** sirkitree|afk is now known as sirkitree
[21:32:34] *** josh-k has joined #angularjs
[21:32:44] <oniijin> Grokling imposiburu
[21:32:46] *** jwowwz has joined #angularjs
[21:32:46] <dreambox> Grokling: easy, "undefined function getMethod();"
[21:32:50] *** anjumkaiser has quit IRC
[21:32:53] <sacho_> I think the scope you get at compile is already isolate, tkdaj
[21:32:55] <oniijin> that's the resulting error
[21:32:58] <oniijin> that's not your problem
[21:33:09] *** BlinkyBill has joined #angularjs
[21:33:16] <dreambox> if I knew what was causing it, I wouldn't be here right?..
[21:33:20] *** qdk has joined #angularjs
[21:33:21] <sacho_> hmm
[21:33:27] <sacho_> wait, there's no scope at compile
[21:33:27] *** edzez has quit IRC
[21:33:28] <Grokling> Also, that's not a sentence. Your mum would have no idea what you're on about..
[21:33:37] <tkdaj> correct
[21:33:55] <oniijin> you're doing the equivalent of, *dump pile of shit on desk* "this doesn't work, fix it"
[21:33:56] *** edzez has joined #angularjs
[21:33:58] <dreambox> ok, it's the 3rd evening I'm here and everyone already knows what the problem is, but for the sake of it ,
[21:34:18] *** e0ipso|away is now known as e0ipso
[21:34:22] <dreambox> "I get an undefined when I call my Factory from within my controller"
[21:34:26] *** dsdeiz has joined #angularjs
[21:34:33] <sacho_> what's the exact error
[21:34:36] *** _rmt has joined #angularjs
[21:34:38] <hiptobecubic> dreambox, well that's the problem right there
[21:34:48] <opus_> maybe a typo in your code?
[21:34:48] <dreambox> "While all dependencies are correct and the syntax of the factory is a C/P example from the ng-book ...
[21:34:56] <sacho_> dreambox, what's the exact error
[21:35:09] <oniijin> C/P usually leads to errors
[21:35:12] <dreambox> sacho_: TypeError: undefined is not a function
[21:35:14] <vdrizzle-work> can anyone help me with form validation why do I get all messages instead of the corresponding message when validation fails? http://plnkr.co/edit/8XbuoeLW2HvKoNiXOXqa?p=preview
[21:35:28] <sacho_> dreambox, what's the line it appears on, and what does your factory look like
[21:35:47] <dreambox> sacho_: the factory/service: https://gist.github.com/0b19d0f5c26cbc24aa6b , the controller: https://gist.github.com/7831f4173cfe2b01e428
[21:35:48] <_rmt> Hello all, I attempting to use $resource to make an update method for a RESTful backend, but in the process I am now receiving a 'Cannot POST' method which I cannot target where it is being called from
[21:36:05] *** MistahKurtz has joined #angularjs
[21:36:05] <tkdaj> okay, I guess I asked the question incorrectly... I am making a table pagination directive. It creates the page number bar underneath the table in the compile using stuff that is passed to it so it knows how many page numbers the table should have. but then in my link function I have scope variables so that I can bind to stuff in the table. Then, if I use this directive more than once the tables have a variable conflict with each other and the directives
[21:36:06] <Grokling> dreambox: Okay, so you take the plunker template, you c/p/ your factory into the plunker, you set up the controller to call the factory, and put some output from it into scope, you click run, fix any non-related errors in the console, save it, and c/p the link here.
[21:36:08] *** SonikBoom has joined #angularjs
[21:36:12] <dreambox> maybe some PDF hidden character sneaked in the code from the book
[21:36:25] *** oktapodi has joined #angularjs
[21:36:37] <Grokling> dreambox: not 'your' factory.. but the one from the book maybe..
[21:36:42] *** mzabriskie has quit IRC
[21:37:04] <sacho_> dreambox, have you tried breaking before Geolocationcoords.someMethod() yet?
[21:37:09] <sacho_> what does Geolocationcoords look like then?
[21:37:16] <dreambox> sacho_: yep
[21:37:21] *** MistahKurtz has quit IRC
[21:37:34] *** shpoont has joined #angularjs
[21:37:43] <_rmt> I read the $resource documentation on the angular site, and was trying to use ngRoute and $routeParams to create the update method, but I am now receiving a cannot post error to a route that isn't even meant for posting to
[21:37:55] *** MistahKurtz has joined #angularjs
[21:38:05] <vdrizzle-work> can anyone help me with form validation why do I get all messages instead of the corresponding message when validation fails? http://plnkr.co/edit/8XbuoeLW2HvKoNiXOXqa?p=preview
[21:38:06] <_rmt> I should also note I am using ui-router
[21:38:10] <dreambox> well when I hover over it I see: function Resource(value){ shallowClearAndCopy(value || {}, this); }
[21:38:13] <sacho_> dreambox, oh ok, I see the problem
[21:38:31] *** jheady has joined #angularjs
[21:38:33] *** vtali has quit IRC
[21:38:38] <sacho_> dreambox, for the record, I spotted the problem while making a test case on plunker
[21:38:56] <dreambox> sacho_: hm.. I'm all ears (also for the method of finding the problem)
[21:39:00] <sacho_> this is also why $inject is superior to the other injection styles!
[21:39:07] *** night-owl is now known as zz_night-owl
[21:39:27] *** stephanbuys has quit IRC
[21:39:31] <sacho_> dreambox, look at your dependencies on the controller
[21:39:33] <dreambox> I knew its something to do with dependencies...
[21:39:37] <dreambox> aha?
[21:39:55] <sacho_> well, what's the 4th dependency?
[21:40:06] <dreambox> Authentication
[21:40:18] <sacho_> and the 5th
[21:40:20] <dreambox> shit
[21:40:24] <patrick99e99> sacho_: I did... like I said, I tried everything and googled the topic.. you cant do it without makinbg a custom directive.
[21:40:30] <oniijin> sacho_ ur way too accomodating
[21:40:31] <dreambox> THEY HAVE TO BE IN THE SAME ORDER?
[21:40:38] <oniijin> ur kidding right
[21:40:49] <patrick99e99> sacho_: the only way to make a directive redraw itself with an ng-if is to use a $timeout after you set the property to undefined and reset it
[21:40:52] <vdrizzle-work> can anyone help me with form validation why do I get all messages instead of the corresponding message when validation fails? http://plnkr.co/edit/8XbuoeLW2HvKoNiXOXqa?p=preview
[21:40:53] <dreambox> fuckin hell :/
[21:41:12] *** MistahKurtz has joined #angularjs
[21:41:14] *** bkuberek has joined #angularjs
[21:41:24] <dreambox> ok back to the studying room
[21:41:32] *** oktapodi has quit IRC
[21:41:34] <sacho_> patrick99e99, why are you using ng-if
[21:41:41] <dreambox> the reason the dependencies are repeated twice is to avoid minification problems?
[21:41:47] *** MistahKurtz has quit IRC
[21:41:51] <oniijin> if u mean array notation, yes
[21:42:06] <Grokling> remember people.. sacho_ figured that out while making a plunker.. 9/10 times that's exactly what happens..
[21:42:06] <sacho_> dreambox, use $inject style injects
[21:42:13] *** rishabhmhjn has joined #angularjs
[21:42:15] <patrick99e99> sacho_: like I said, I have a directive, and I want it to only exist on the page when something is set, and then I want to be able to re-draw it later..
[21:42:24] <dreambox> I thought the MeanJS stack handles these auto-magically inserting what's necessary
[21:42:25] *** MistahKurtz has joined #angularjs
[21:42:28] <oniijin> Grokling that takes effort. easier to dump shitpile and have it sorted for you
[21:42:50] *** bkuberek has quit IRC
[21:42:53] <oniijin> ngannotate will handle minification issues, but if u use array notation and fuck it up, that's on you
[21:42:53] <dreambox> Grokling: in my case I really didn't know the order of the dependencies should be the same,
[21:43:00] *** MistahKurtz has quit IRC
[21:43:00] *** Simone\ has quit IRC
[21:43:02] <dreambox> Grokling: even if I read this code 132424 times I wouldnt see it
[21:43:05] <sacho_> dreambox, you still need to match a certain structure for things like ngInject to work
[21:43:32] *** SeeThruHead has quit IRC
[21:43:39] <dreambox> wait, so , since I do use ngannotate..
[21:43:39] *** MistahKurtz has joined #angularjs
[21:43:45] <dreambox> why do I need the array notation?
[21:43:47] <vdrizzle-work> can anyone help me with form validation why do I get all messages instead of the corresponding message when validation fails? http://plnkr.co/edit/8XbuoeLW2HvKoNiXOXqa?p=preview
[21:43:53] *** sigurding has joined #angularjs
[21:43:55] *** Simone\ has joined #angularjs
[21:43:57] <Grokling> dreambox: True, but if you'd made the plunker, we would have looked at it, and in less than a couple of minutes you would have had your answer. Not three nights ;-)
[21:44:03] <sacho_> dreambox, http://plnkr.co/edit/PNBI0B5vc5KqPqzqRSKf?p=catalogue
[21:44:11] *** boneskull has joined #angularjs
[21:44:34] *** mandric has joined #angularjs
[21:44:54] <oniijin> if u use ngannotate, then u dont need array notation
[21:44:54] *** Simone\ has quit IRC
[21:44:55] <dreambox> sacho_: that's clean!
[21:45:06] *** MistahKurtz has quit IRC
[21:45:10] <Grokling> dreambox: Also, then you'd have the bones of the plunker set up to illustrate the next problem (fork the one sacho_ has generously made for you to use again later)
[21:45:11] <oniijin> maybe take a step back and skim thru some docs for all the tools you're using
[21:45:18] <oniijin> so you dont use a rotary saw as a hammer
[21:45:36] <sacho_> magnets, man.
[21:45:42] <dreambox> well I figured starting with a generator would give good best practice structure
[21:45:49] *** Evoratec has quit IRC
[21:45:53] *** nemothekid has joined #angularjs
[21:45:54] <oniijin> not really
[21:45:56] <dreambox> but it's way too complex shit for my level
[21:45:56] <Grokling> oniijin: why not? you can use just about anything as a hammer. Also, you can use a flat head screwdriver as just about anything.
[21:46:14] <oniijin> Grokling ur diluting my metaphor
[21:46:16] *** whunt has joined #angularjs
[21:46:21] <oniijin> watery soupy mess
[21:46:22] <vdrizzle-work> can anyone help me with form validation why do I get all messages instead of the corresponding message when validation fails? http://plnkr.co/edit/8XbuoeLW2HvKoNiXOXqa?p=preview
[21:46:24] <sacho_> dreambox, well, the problem with a generator is that you don't know *why* the structure is set up that way, and there's usually no clear indication how to extend it..or even use it
[21:46:41] *** Skrypter has joined #angularjs
[21:46:50] <oniijin> they're handy once u know what you're kind of doing, but using it blindly u'll run into issues bc they have SO MUCH bundled in
[21:47:05] *** cotko has quit IRC
[21:47:10] *** hiptobecubic has quit IRC
[21:47:32] <dreambox> Dependency Injection chapter time on the ng-book :)
[21:47:36] *** tskaggs_ has quit IRC
[21:47:41] <dreambox> enough developing
[21:47:46] *** hiptobecubic has joined #angularjs
[21:48:06] <vdrizzle-work> can anyone help me with form validation why do I get all messages instead of the corresponding message when validation fails? http://plnkr.co/edit/8XbuoeLW2HvKoNiXOXqa?p=preview
[21:48:07] <dreambox> Yeah thats what I see
[21:48:15] *** SeeThruHead has joined #angularjs
[21:48:15] *** jillesme has quit IRC
[21:48:18] *** tristanp has quit IRC
[21:48:18] *** Evoratec has joined #angularjs
[21:48:31] *** vtali has joined #angularjs
[21:48:37] <oniijin> vdrizzle-work have u read http://www.yearofmoo.com/2014/05/how-to-use-ngmessages-in-angularjs.html
[21:48:41] <oniijin> u should read it
[21:48:54] *** mupkoo has quit IRC
[21:48:56] *** Simone\ has joined #angularjs
[21:49:02] *** ctanga has joined #angularjs
[21:49:09] *** chrisbirk has joined #angularjs
[21:49:31] *** shpoont has quit IRC
[21:49:44] <vdrizzle-work> oniijin: no I have not
[21:49:52] <oniijin> very good coverage of ngmessages
[21:49:55] *** jillesme has joined #angularjs
[21:49:57] *** shpoont has joined #angularjs
[21:50:18] *** braidn has quit IRC
[21:50:35] *** whitebook has quit IRC
[21:51:07] *** g3funk has joined #angularjs
[21:51:37] *** netameta_ has quit IRC
[21:51:40] <dreambox> thanks everyone
[21:51:49] <maraneta> so i made the following scope function: http://dpaste.com/1QYCGA5; it is intended to return the concatenation of multiple inputs. it works, but when i delete everything from all of those inputs, it returns undefined. how can i just make it return '' instead of undefined?
[21:51:54] *** g3funk has joined #angularjs
[21:52:30] *** nuizzy has joined #angularjs
[21:52:30] *** CHC has quit IRC
[21:52:36] *** whitebook has joined #angularjs
[21:52:41] *** tristanp has joined #angularjs
[21:52:52] *** patrickarlt has joined #angularjs
[21:52:53] *** dreambox_ghost has joined #angularjs
[21:54:11] *** bkuberek has joined #angularjs
[21:54:27] <Grokling> maraneta: if(retain.testcards.length <1){return '';}
[21:55:18] *** g3funk is now known as braidn
[21:55:24] *** bkuberek has quit IRC
[21:55:28] *** MistahKurtz has joined #angularjs
[21:55:43] *** borvoh has quit IRC
[21:55:50] *** moritzs has quit IRC
[21:56:12] *** RobinBAwesome has joined #angularjs
[21:56:17] *** dreambox has quit IRC
[21:57:28] *** doginal_ has joined #angularjs
[21:57:29] <maraneta> Grokling: that won't work; maybe i can check the length of all the retain.testcards.length.notes
[21:57:35] *** kuadrosx has joined #angularjs
[21:57:38] <maraneta> retain.testcards.notes**
[21:57:40] *** Tobius has quit IRC
[21:58:05] *** vtali has quit IRC
[21:58:11] *** M8M has quit IRC
[21:58:15] *** mattblang has quit IRC
[21:58:18] *** jheady1 has joined #angularjs
[21:58:29] <Grokling> maraneta: You're using that comparison in your loop (which incidentally, you could replace more elegantly with a .map()
[21:58:30] *** Tobius has joined #angularjs
[21:58:37] *** doginal has quit IRC
[21:58:37] *** doginal_ is now known as doginal
[21:58:41] *** blomman has quit IRC
[21:58:44] *** gnrlbzik has quit IRC
[21:58:47] *** PrinceAMD has joined #angularjs
[21:59:38] *** thomastuts has joined #angularjs
[21:59:48] *** PrinceAMD has quit IRC
[22:00:06] *** simplyshipley has quit IRC
[22:00:42] *** bkuberek has joined #angularjs
[22:00:51] *** chrisbirk has quit IRC
[22:01:15] *** hernan_ has joined #angularjs
[22:01:22] *** jheady has quit IRC
[22:01:23] *** hernan has quit IRC
[22:01:51] *** savantgarde has joined #angularjs
[22:02:03] <deweydb> uh, can someone tell me, how would i implement this: https://github.com/umurkontaci/angular-raven to send ALL js errors to raven?
[22:02:04] <icfantv> pretty sure this isn't possible, but can you inject an angular.constant(…) into another one?
[22:02:13] <deweydb> it looks like it only sends them if you manually do it?
[22:02:20] *** metasansana has quit IRC
[22:02:24] *** e0ipso is now known as e0ipso|away
[22:02:39] <icfantv> ahhhh…..when they're both part of the same module.
[22:02:44] <doginal> if i want a value prior to load is a provider the way to go? my factory doesnt seem to work
[22:03:01] *** niop has joined #angularjs
[22:03:30] *** tech2 has quit IRC
[22:04:24] *** shpoont has quit IRC
[22:04:38] *** mzabriskie has joined #angularjs
[22:04:53] <maraneta> Grokling: actually i don't think its a problem with my code... i think it's a problem with the textarea element. it seems like whenever there's text in the text area and then it is removed, it becomes 'undefined'
[22:04:55] *** shpoont has joined #angularjs
[22:05:40] *** gombos has quit IRC
[22:05:44] *** bkuberek has quit IRC
[22:05:57] *** chrisbirk has joined #angularjs
[22:06:27] *** dweave has joined #angularjs
[22:06:34] <Grokling> maraneta: I haven't encountered that issue with any of my textareas or other inputs. Is there something else you're doing along the way perhaps?
[22:07:10] *** tplaner has joined #angularjs
[22:07:15] *** cthrax has quit IRC
[22:07:17] <dweave> i’m confused by how angular handles cors. Or perhaps I’m just confused by CORS itself. How does angualr know to send the options request before the normal request
[22:07:47] *** warcuy has joined #angularjs
[22:07:48] *** jheady1 has left #angularjs
[22:08:08] *** mzabriskie has quit IRC
[22:08:13] <dweave> it seems to be doing so without me even adding the normal ceremony of xDomain = true; etc.
[22:08:23] *** mruzekw has quit IRC
[22:09:06] <maraneta> Grokling: i have no idea. but i've tried everything in my function and nothing changes. i've tried checking the length of the resulting text, as well is trying typeof text == 'undefined' ... but neither of those worked
[22:09:12] <surreal> If I am doing an ajax request and a certain MS browser is throwing the "10 $digest() iterations reached", how would I catch that exception?
[22:09:25] *** sigurding has quit IRC
[22:09:35] *** gunn has quit IRC
[22:09:37] *** zuluz has quit IRC
[22:09:40] *** bpmj has quit IRC
[22:09:41] <Grokling> maraneta: Does the same thing happen if you remove the function entirely?
[22:09:57] <alexw> Is it possible to watch a forms dirty event?
[22:10:05] <alexw> I want to disable navigation if a form is dirty
[22:10:19] *** Oddman has joined #angularjs
[22:10:20] *** rbs has quit IRC
[22:10:25] <oniijin> ngmodeloptions?
[22:10:35] <surreal> Do the $http() request inside a try/catch block?
[22:11:13] <maraneta> if i remove the function entirely, i can't replicate the behaviour. with the function, the textarea starts with the desired value, but once i erase all the input values (which the textarea is a concatenation of), the textarea yields 'undefined'
[22:11:18] <maraneta> grokling
[22:11:23] *** rtpg has joined #angularjs
[22:11:29] *** gombos has joined #angularjs
[22:11:35] *** gunn has joined #angularjs
[22:11:46] <Grokling> surreal: $http returns promises, so, you can use promise handling to do something similar to a try/catch.
[22:12:06] *** ColKurtz has joined #angularjs
[22:12:11] <maraneta> grokling: it's also weird because if i start with nothing in the inputs to begin with, the text area will have the desired output (nothing). only when i type something and then erase it will the text area yield undefined
[22:12:23] *** kuadrosx has quit IRC
[22:12:23] *** MistahKurtz has quit IRC
[22:12:34] *** whiteboo_ has joined #angularjs
[22:12:38] *** ProLoser has joined #angularjs
[22:12:50] <surreal> Grokling: thanks for the reminder about promises... that may be my problem, come to think of it.
[22:12:51] *** kuadrosx has joined #angularjs
[22:12:53] <Grokling> maraneta: Does your bound model exist prior to entering values in the inputs?
[22:12:57] *** gnrlbzik has joined #angularjs
[22:13:02] *** whitebook has quit IRC
[22:13:24] *** akrikos has quit IRC
[22:13:35] <savantgarde> if I am to PUT a model to the server after it's been modified, should I watch it for changes?
[22:13:42] <savantgarde> the model is part of an array btw
[22:13:43] *** alinouman has quit IRC
[22:14:20] <savantgarde> I mean, what's the recommended technique for such a scenario
[22:14:22] *** ColKurtz has quit IRC
[22:14:31] <chovy> i have a bookmarklet that does el.value = 'foo';
[22:14:46] <chovy> but angular is still seeing the form as invalid. is there something I need to do to trigger a change event?
[22:14:53] *** cthrax has joined #angularjs
[22:14:55] <chovy> I tried el.click() and el.onchange() but that didn't fix it
[22:15:17] *** gordroidJS has quit IRC
[22:15:20] <Grokling> savantgarde: I don't know about recommended, but I set a dirty:true property on my models when they get changed, then when I go to save, I just save the dirty ones..
[22:15:22] *** mvovchak has quit IRC
[22:15:38] *** krawchyk has quit IRC
[22:15:46] *** Evoratec has quit IRC
[22:15:55] <savantgarde> Grokling: thanks, there's no save button in this design though, I think there should be an auto update
[22:16:08] *** Jdubs has quit IRC
[22:16:16] <Grokling> savantgarde: Even so - the auto-update process can test for dirty..
[22:16:21] <_rmt> Can anyone help me wire up a $resource update/PUT method for a mongoDB backend?
[22:16:24] *** rtpg has quit IRC
[22:16:36] <savantgarde> Grokling: how do you set the dirty flag though?
[22:16:39] *** moafoca has joined #angularjs
[22:16:40] *** vectra has quit IRC
[22:16:46] <_rmt> I am following the documentation at angularjs.org
[22:16:51] <savantgarde> I mean, how does your logic for doing so get invoked?
[22:17:00] <Grokling> savantgarde: ng-change
[22:17:09] <_rmt> I am using a controller to call the $resource
[22:17:21] *** giupo has quit IRC
[22:17:28] <savantgarde> Grokling: aha
[22:17:32] <_rmt> the $resource returns $resource('/api/registered_companies/:id', null, { 'update' : { method : 'PUT' } });
[22:18:06] <savantgarde> Grokling: I guess ngChange might fire my update then
[22:18:26] *** jillesme has quit IRC
[22:18:30] *** lw has quit IRC
[22:19:17] *** Latros-O_ has quit IRC
[22:19:23] <TheAceOfHearts> http://jagthedrummer.github.io/service_oriented_authentication/ I like this slide deck. It explains why oauth is such a bitch.
[22:19:28] *** whiteboo_ has quit IRC
[22:19:29] *** shpoont has quit IRC
[22:19:30] *** c00ljs has quit IRC
[22:19:30] <Grokling> savantgarde: It could, but then you'd be firing your update A LOT (ng-change fires on each key press which probably isn't what you want), so you might be better to do it somewhere else. Maybe as a 'before navigating away' step?
[22:19:32] <vdrizzle-work> oniijin: I read that article which is was great by the way (added to blog to my bookmarks) but I copied one of the example forms in my plunker and it did not work as expected. So I'm at a loss here as to what am I doing wrong.
[22:19:49] *** bpmj has joined #angularjs
[22:19:57] *** shpoont has joined #angularjs
[22:19:58] *** krawchyk has joined #angularjs
[22:20:03] <savantgarde> Grokling: I thought I'd throttle, so that the update only happens after a short idle period
[22:20:09] <oniijin> which ng ver are u using vdrizzle-work
[22:20:32] <savantgarde> Grokling: but maybe there are certain patterns for this
[22:20:49] <vdrizzle-work> oniijin: 1.3.0 on plunker
[22:20:53] *** rishabhmhjn has quit IRC
[22:21:03] <oniijin> hmm I tried his examples myself in plunkr and they worked
[22:21:18] *** jillesme has joined #angularjs
[22:21:32] *** wisefool has quit IRC
[22:21:48] <vdrizzle-work> on his plunker he is including some snapshot library
[22:21:53] <oniijin> http://plnkr.co/edit/8VnMRgvY1RsqyvN3qQno?p=preview
[22:22:05] *** Owner__ has joined #angularjs
[22:22:06] *** robdubya has joined #angularjs
[22:22:06] <maraneta> Grokling: yeah it does
[22:22:11] <_rmt> Error: [$resource:badcfg] Error in resource configuration. Expected response to contain an object but got an array
[22:22:17] *** rishabhmhjn has joined #angularjs
[22:22:23] <_rmt> Can someone help me around this error?
[22:22:29] *** Owner__ is now known as Guest34111
[22:22:53] *** rishabhmhjn has quit IRC
[22:23:09] *** rishabhmhjn has joined #angularjs
[22:23:28] <sacho_> _rmt, what about it
[22:23:38] <Grokling> maraneta: Do you have this in a plunker so I can fiddle with it?
[22:23:54] <oniijin> makes plunk sound so dirty when u fiddle it
[22:24:02] *** dylang has quit IRC
[22:24:21] <_rmt> big picture: trying to make a PUT request using $resource
[22:24:30] <vdrizzle-work> So I just copy that code in my plunker and nada http://plnkr.co/edit/8XbuoeLW2HvKoNiXOXqa?p=preview
[22:24:49] <_rmt> in the controller I write: Company.get({id:$routeParams.id}, function(company){ console.log(company); });
[22:24:59] <_rmt> Company being the resource
[22:25:05] *** hello_ has joined #angularjs
[22:25:06] *** doginal has quit IRC
[22:25:20] <_rmt> but then I receive an error
[22:25:22] *** tfennelly has joined #angularjs
[22:25:43] *** cannap has quit IRC
[22:25:45] <_rmt> .factory('Company', function ($resource) { return $resource('/api/registered_companies/:id', null, { 'update' : { method : 'PUT', isArray: true } }); });
[22:26:11] *** blomman has joined #angularjs
[22:26:12] <oniijin> vdrizzle-work copy just the 1.3 cdn u are using into the plunk i posted
[22:26:52] *** toad-br has quit IRC
[22:27:06] *** mzabriskie has joined #angularjs
[22:27:11] *** speakingcode is now known as bgswanson
[22:27:18] <oniijin> brb
[22:27:25] *** doginal has joined #angularjs
[22:27:35] *** phuh has quit IRC
[22:27:38] *** mzabriskie has quit IRC
[22:28:02] *** phuh has joined #angularjs
[22:28:06] *** mzabriskie has joined #angularjs
[22:28:19] *** speaking1ode has joined #angularjs
[22:28:27] *** speaking1ode is now known as vongrippen
[22:28:30] <vdrizzle-work> oniijin: it works SMH
[22:29:03] *** doginal has quit IRC
[22:29:10] <moafoca> Any one undestand anything? http://plnkr.co/edit/exeQ7hbztuFvlKdVVVMs
[22:29:14] *** JSON_voorheez has left #angularjs
[22:29:59] *** doginal has joined #angularjs
[22:30:24] *** freeman42 has quit IRC
[22:30:25] <Grokling> moafoca: Check your console..
[22:30:45] *** ngbot has joined #angularjs
[22:30:45] <ngbot> [angular.js] petebacondarwin pushed 2 new commits to master: http://git.io/SynpyQ
[22:30:45] <ngbot> angular.js/master 841c090 Dave Longley: fix($compile): do not rebind parent bound transclude functions...
[22:30:46] <ngbot> angular.js/master 91834bc Peter Bacon Darwin: test($compile): use `ngMock.Scope.$countChildScopes()`
[22:30:46] *** ngbot has left #angularjs
[22:30:54] <moafoca> They have alot of errors :;(
[22:30:56] <moafoca> :(
[22:30:57] <Grokling> moafoca: also, that's not how scope works..
[22:31:13] <maraneta> Grokling: i fixed it... when i would erase text from an input, the value of that field became undefined and messed up the loop, resulting in an undefined value
[22:31:14] *** jbeaudry has joined #angularjs
[22:31:22] <dweave> hey all does angular automatically infer when it should do a preflight request for CORS
[22:31:37] <maraneta> Grokling: i just added a check to make sure the notes field is a string, and if not then append ''
[22:31:39] <jaawerth> dweave: your browser does that, I believe
[22:31:42] *** vtali has joined #angularjs
[22:31:49] *** lsiv568 has joined #angularjs
[22:31:51] *** mtsr has quit IRC
[22:31:52] *** freeman42 has joined #angularjs
[22:31:56] <dweave> hmm
[22:31:58] <dweave> i see
[22:33:05] <jaawerth> the preflight request will be necessary for certain types of calls but not for others. like, a "simple" request doesn't need the preflight, but $http calls aren't "simple" unless you configure them to be
[22:33:13] *** vongrippen has quit IRC
[22:33:24] *** bgswanson is now known as speakingcode
[22:33:34] *** marshall_ has quit IRC
[22:33:53] *** jackdpeterson has joined #angularjs
[22:34:07] *** bolloga has joined #angularjs
[22:34:42] *** SomeKittens has quit IRC
[22:34:44] *** shpoont has quit IRC
[22:34:48] *** lsiv568 has quit IRC
[22:34:53] <jaawerth> dweave: https://developer.mozilla.org/en-US/docs/Web/HTTP/Access_control_CORS#Preflighted_requests
[22:35:07] *** bolloga has quit IRC
[22:35:12] *** shpoont has joined #angularjs
[22:35:18] *** Jdubs has joined #angularjs
[22:35:32] <vdrizzle-work> jaawerth: have you played with ngMessages? I'm having an issue and I don't what am I doing wrong http://plnkr.co/edit/8XbuoeLW2HvKoNiXOXqa?p=preview
[22:36:07] *** umib0zu has quit IRC
[22:36:11] *** NormySan has quit IRC
[22:36:22] *** mdedetrich has joined #angularjs
[22:36:26] *** jonathanpglick has quit IRC
[22:36:26] *** jharbaugh has quit IRC
[22:37:00] *** jharbaugh has joined #angularjs
[22:37:08] *** zumba_addict has joined #angularjs
[22:37:23] <zumba_addict> is this a good way of checking it? https://gist.github.com/c0debreaker/ebe1137969110399acaa
[22:38:05] <dweave> jaawerth do we stil ened to do this “delete $httpProvider.defaults.headers.common["X-Requested-With”];” business
[22:38:11] <dweave> or is that ancient?
[22:38:36] <dweave> seems like CORS is working without it
[22:38:50] <jaawerth> from what I've seen that isn't really necessary anymore
[22:39:02] <jaawerth> vdrizzle-work: I haven't much, but I think I can help.. looking now
[22:39:15] *** jonathanpglick has joined #angularjs
[22:39:24] *** danecando has quit IRC
[22:39:27] *** P1RATEZ has joined #angularjs
[22:39:27] <vdrizzle-work> jaawerth: thanks
[22:39:34] *** ki0 has joined #angularjs
[22:40:04] *** bolloga has joined #angularjs
[22:40:24] *** zumba_addict has quit IRC
[22:41:33] *** jharbaugh has quit IRC
[22:41:56] *** phuh has quit IRC
[22:42:25] *** phuh has joined #angularjs
[22:42:31] <nycdevgirl> Hiii I have a user schema and I'm trying to set one of the propertys to another user's schema
[22:43:17] *** rhp has quit IRC
[22:43:23] *** freeman42 has quit IRC
[22:43:28] <nycdevgirl> I know it should be something like this but I'm not sure how to figure out what to put in type var UserSchema = new Schema({
[22:43:28] <nycdevgirl> name: String,
[22:43:30] <nycdevgirl> partner: {
[22:43:31] <nycdevgirl> type: Schema.ObjectId,
[22:43:32] <nycdevgirl> ref: 'User'
[22:43:33] <nycdevgirl> }})
[22:43:39] *** freeman42 has joined #angularjs
[22:43:43] *** ki0 has quit IRC
[22:44:11] *** lsiv568 has joined #angularjs
[22:44:13] *** ProLoser has quit IRC
[22:44:26] *** mandric has quit IRC
[22:44:35] *** ozooner__ has joined #angularjs
[22:44:45] *** ozooner_ has quit IRC
[22:44:55] *** thomastuts has quit IRC
[22:45:40] *** shampine_ has joined #angularjs
[22:45:52] *** draconis-chomp has joined #angularjs
[22:46:11] *** fornax has quit IRC
[22:46:30] *** shampine_ has joined #angularjs
[22:46:51] <the-anconia> Is there anyway to isolate scopes between two directives if their scope option values are the same? In my case it’s a captcha public key.
[22:46:54] <vdrizzle-work> nycdevgirl: I think you have the wrong IRC
[22:47:27] <nycdevgirl> lol well im using angular in my projecttt
[22:47:52] <jcool> how can we pass mutiple data via http post?
[22:47:52] <vdrizzle-work> :D look like a mongoose type of question though
[22:48:10] <nycdevgirl> indeed you are correct, i just figured people in here might be familiar
[22:48:12] <jcool> data: $scope.port is one param. what about second one?
[22:48:33] *** gunn has quit IRC
[22:48:35] *** wallerdev has joined #angularjs
[22:48:41] *** Oddman has quit IRC
[22:48:48] <vdrizzle-work> <- I just started playing with it recently so I dont think I'm that guy
[22:48:49] <jaawerth> vdrizzle-work: you didn't inject the module :-P
[22:48:56] <sacho_> jcool, pass an object
[22:49:08] <jcool> sacho_, ah okay.
[22:49:09] <vdrizzle-work> omg shoot me!
[22:49:12] *** elxa has joined #angularjs
[22:49:14] <jcool> sacho_, thanks.
[22:49:18] *** deyna has joined #angularjs
[22:49:29] *** Sebastien-L has quit IRC
[22:49:33] <jaawerth> vdrizzle-work: http://plnkr.co/edit/39dBouxIrTYiUjVaeDm5?p=preview
[22:49:41] *** shpoont has quit IRC
[22:49:48] <jaawerth> hahaha
[22:50:01] <jaawerth> that's why I like using templates in plnkr, stops you from forgetting the little things
[22:50:05] *** shpoont has joined #angularjs
[22:50:18] <vdrizzle-work> jaawerth: thanks man! I swear I ask you the stupidest questions
[22:50:35] <vdrizzle-work> thanks a lot again
[22:50:38] *** deyna has quit IRC
[22:50:38] *** whunt_ has joined #angularjs
[22:50:59] <oniijin> back
[22:51:00] <vdrizzle-work> of to the coffee shop I go!
[22:51:01] <oniijin> what'd i miss
[22:51:09] *** rishabhmhjn has quit IRC
[22:51:12] <jaawerth> sometimes you just need another pair of eyes
[22:51:27] <jaawerth> oniijin: hey, you had $observe questions?
[22:51:28] <vdrizzle-work> oniijin: I forgot to inject the darn module SMH!
[22:51:42] <oniijin> vdrizzle-work lol
[22:51:53] *** dejanr has quit IRC
[22:51:55] <oniijin> jaawerth was trying to find examples of when/how i'd use it
[22:52:07] <oniijin> i get the basic using it in directive
[22:52:19] <oniijin> but not sure when/purpose/etc
[22:52:24] *** Latros-OS has joined #angularjs
[22:52:43] *** Latros-OS has quit IRC
[22:52:55] <jumpman> When .extending two objects that have properties with the same key, which is kept?
[22:52:58] *** Tobius has quit IRC
[22:53:09] *** whunt has quit IRC
[22:53:36] *** hello_ has quit IRC
[22:53:47] *** anivemin has quit IRC
[22:53:51] *** jonnybro has joined #angularjs
[22:54:26] *** mandric has joined #angularjs
[22:55:02] <jaawerth> oniijin: well I usually use it in a directive. it's very similar to $watch, only you don't need stuff to be on the scope when using it
[22:55:04] *** apertoire has quit IRC
[22:55:24] <oniijin> what's an example use
[22:55:28] *** djazayeri has joined #angularjs
[22:55:41] *** warcuy has quit IRC
[22:55:54] *** jlebrech has joined #angularjs
[22:55:56] *** Joe_knock_afk is now known as Joe_knock
[22:56:03] <themime> im getting express set up - whats a common "save my file now i need to test" process? would i save then run gulp, and it would run the tests then if they succeed output to the express web folder?
[22:56:15] <jaawerth> oniijin: one benefit to this is that if you want to watch a value that need only be a string, you don't need to set up isolate scope on your directive to do so, and if your $observe doesn't have an actual expression in it with {{ }}, well, it only ever gets called once and won't interpolate on every digest
[22:56:22] <themime> i guess this is the wrong place haha. im so used to all my questions being angular related
[22:56:44] <_rmt> So I am able to make a PUT request, but I do not see my mongoDB collection update on the backend
[22:56:44] *** zumba_addict has joined #angularjs
[22:56:45] *** siddart has joined #angularjs
[22:56:59] *** zB0hs has quit IRC
[22:57:10] <jaawerth> I've heard a bunch that $observe is more performant, but upon looking into it a little more closely I think this was much mroe true pre-1.2 than post, though it still has the edge in that it makes it easier to set up a 'watcher' in a directive for stuff that might not exist without costing performance
[22:57:10] *** lw has joined #angularjs
[22:57:11] *** niop has quit IRC
[22:57:20] <Grokling> themime: gulp watch can trigger all your stuffs when you change a file.
[22:57:29] <themime> wut
[22:57:42] *** lsiv568 has quit IRC
[22:57:52] <djazayeri> Question about angular-ui's ui-bootstrap typeahead. I want to make things behave so that when the user chooses an option, focus jumps to the next element. As far as I can tell, the only way to do this is by doing $timeout(jump, 10) in the typeahead-on-select function. But I want to find a way to do this without needing to rely on an explicit delay (i.e. the 10 in that line).
[22:57:55] <jaawerth> <3 gulp
[22:57:56] <djazayeri> Also posted at http://stackoverflow.com/questions/26725168/how-to-jump-to-the-next-input-field-after-user-selection-on-a-typeahead
[22:58:11] *** cboden has quit IRC
[22:58:34] *** zeroquake has quit IRC
[22:58:39] <Grokling> themime: Check Foxandxss's workflow: http://angular-tips.com/blog/2014/09/my-new-angular-workflow-with-gulp/ Not, you don't have to use all of it, just pillage his gulp tasks etc if that's all you want..
[22:58:39] <themime> Grokling: awesome thats sick. i feel like a caveman thats been so excited about fire he hasn't been paying attention to the refrigerator and oven in the town over
[22:58:46] *** JohnBat26 has joined #angularjs
[22:59:03] *** mbildner has quit IRC
[22:59:06] <oniijin> jaawerth that makes sense. i'll look around for examples I can play with
[22:59:15] <themime> Grokling: i actually have that saved for when i get back to gulp, for now im getting express set up but yea that link is my list :)
[22:59:25] *** warcuy has joined #angularjs
[22:59:38] *** Efrem has quit IRC
[22:59:40] *** ProLoser has joined #angularjs
[22:59:44] <jaawerth> oniijin: I have a basic plunk example I just showed someone yesterday.. trying to find it. It's a conditional ng-click directive that adds and removes the click listeners depending on the attribute value
[22:59:46] *** mbildner has joined #angularjs
[22:59:48] <Grokling> themime: The gulp stuff applies equally to express.
[22:59:54] <themime> as i was working on express i realized my client code is a totally different place than where express will want to serve from - gulp seems to solve my confusion/problem
[23:00:02] *** Jdubs has quit IRC
[23:00:10] *** bolloga has quit IRC
[23:00:10] <jaawerth> oniijin: which if you think about it, could REALLY improve performance in your app if you're using ng-click within an ng-repeat for tons of items, and not all of them need be clickable at a given time
[23:00:16] <oniijin> jaawerth that would be perfect. right now I think I get the mechanics of it, just not sure when i'd need to use it
[23:00:27] <jaawerth> means wayyy less 'click' DOM event listeners
[23:00:37] *** jlebrech has quit IRC
[23:00:52] *** krawchyk has quit IRC
[23:01:15] <jaawerth> I swear plnkr is missing some of my stuff :(
[23:01:21] <oniijin> lol
[23:01:25] *** shampine_ has quit IRC
[23:01:35] <oniijin> i went thru and cleaned up my plunk few weeks back
[23:01:43] *** shampine has quit IRC
[23:01:49] <oniijin> so many random plunks, all named Angular 1.2
[23:01:59] *** shinnya has joined #angularjs
[23:02:08] *** BillCriswell has quit IRC
[23:02:49] <jaawerth> oniijin: ah, here we go http://plnkr.co/edit/FxhxeO1lYys92uAPWlQA?p=preview
[23:02:50] <alexw> is it possible to listen if a form is dirty?
[23:02:54] *** spatialbrew has quit IRC
[23:02:55] *** draconis-chomp has quit IRC
[23:02:57] *** woah has joined #angularjs
[23:03:04] <jaawerth> oniijin: yeah, I've started putting better descriptions in for the ones I know I'll want to find again (also tags)
[23:03:22] <jaawerth> I wish plnkr let you find only your OWN plunks by tag
[23:03:27] <jaawerth> it's one of my few complaints
[23:03:37] *** odinn_ has joined #angularjs
[23:03:59] *** zumba_addict has quit IRC
[23:04:24] *** blomman has quit IRC
[23:04:30] <odinn_> angular-ui-router, has $stateParams, but they can not be used to pass arbitrary params to the state, only those with url: '/thing/:param1/:param2' work
[23:04:31] <Grokling> jaawerth: I noticed only yesterday that there's a 'Favorites' tab in plunker.
[23:04:39] <wafflej0ck> yeah thought there was supposed to be an update on plunkr in part to improve search but dunno if that happened
[23:04:42] <jaawerth> yeah, for starred plunks
[23:04:52] <odinn_> how can you get around this (limitation) ?
[23:04:57] <nairys> anyone know how to troubleshoot an issue involving multiple functions within the same ngClick?
[23:05:03] <jaawerth> I would totally help improve it if it's open source. I know it's just one guy. One saintly, saintly guy
[23:05:21] *** frankblizzar has quit IRC
[23:05:24] *** blomman has joined #angularjs
[23:05:33] <jaawerth> nairys: the same way you troubleshoot anything? what exactly are you doing? ng-click="foo(); bar()" ?
[23:05:37] <Grokling> nairys: Unicorns and bacon.
[23:05:47] *** annlewis has quit IRC
[23:05:52] <nairys> http://stackoverflow.com/questions/26767888/change-single-button-color-from-ngrepeat-generated-button-list
[23:06:00] <ctanga> odinn_: 0.2.12 will allow abitrary objects passed as params to states. You still have to declare the params though.
[23:06:00] <nairys> oops meant to paste the plunkr
[23:06:07] <nairys> the plunkr is in that SO question
[23:06:08] <odinn_> I want to be able to do $state.go('stateName.subState', {param1:'value1',param42,'value42'}); without the need to provide a URL reference for every param
[23:06:15] *** shpoont has quit IRC
[23:06:27] *** edy has quit IRC
[23:06:35] *** Siecje has left #angularjs
[23:06:39] *** Eol has joined #angularjs
[23:06:40] *** shpoont has joined #angularjs
[23:06:47] <ctanga> odinn_: for now, would it feel less weird to pass them as query params? “/thing?param1&param2
[23:06:59] <Eol> app.factory('DocumentService') or app.factory('documentService') I can't find anything that's 'official'
[23:07:04] *** ConstantineXVI has quit IRC
[23:07:33] <odinn_> that might be ok, but I use $state.go() to access them only
[23:07:35] <jaawerth> say it with me, guys
[23:07:38] *** squeakytoy has quit IRC
[23:07:43] <jaawerth> MOOOAAAAR
[23:07:44] *** Jdubs has joined #angularjs
[23:07:45] <ctanga> odinn_: thats fine
[23:07:50] <ctanga> http://bit.ly/MOARDOTS
[23:07:53] <odinn_> so how do I construct url: '/whathere?param42&param99' ?
[23:07:54] <jaawerth> DOOTTTSS
[23:08:09] <oniijin> lol
[23:08:11] <ctanga> odinn_: yes
[23:08:12] <oniijin> lolol
[23:08:14] <jaawerth> nairys: MOAR DOTS
[23:08:16] <wafflej0ck> ctanga: odinn_ couldn't you JSON.stringify the object too and then JSON.parse the param?
[23:08:29] <oniijin> cool thanks for the plunk jaawerth
[23:08:35] <oniijin> got it saved in my plunks now
[23:08:37] <Grokling> Dot Dot dottitty dot. Gotta love the smell of fresh dots in the morning.
[23:08:38] <ctanga> wafflej0ck: yes, but that’s also coming in 0.2.12 as “Typed params"
[23:08:46] *** jharbaugh has joined #angularjs
[23:08:47] *** MistahKurtz has joined #angularjs
[23:08:56] <ctanga> also, query params can have multiple values
[23:09:03] *** MistahKurtz has quit IRC
[23:09:20] <jaawerth> nairys: ng-repeat creates a child scope for each repeated item. if you use a primitive directly on scope, scope inheritance isn't going to remain bound because primitives pass by value. The solution is to wrap your "is selected" in an object, or use "controller as" syntax (which effectively does the same thing)
[23:09:22] *** kreiggers has quit IRC
[23:09:23] *** MistahKurtz has joined #angularjs
[23:09:26] <odinn_> wafflej0ck: Urgh, how ugly, I have states that are only accessible from code generated URLs on other controllers
[23:09:29] *** MistahKurtz has quit IRC
[23:09:29] *** tristanp has quit IRC
[23:09:31] <ctanga> so url: ‘/whathere?param42’ can be used like so: $state.go(‘whathere’, { param42: [ “val1”, “val2”, “val3” ] })
[23:09:41] <jaawerth> nairys: I'll update your plunk and accordingly and post it to SO so it's there for anyone else who finds the SO post
[23:09:46] *** lsiv568 has joined #angularjs
[23:09:48] *** Skrypter has quit IRC
[23:09:56] *** MistahKurtz has joined #angularjs
[23:10:03] *** japhar81 has quit IRC
[23:10:16] <nairys> jaawerth thanks it'd be really helpful to see how you do it
[23:10:18] <wafflej0ck> odinn_: didnt' say it was a beautiful solution just offering an option
[23:10:27] <nairys> it's been so frustrating not being able to change a button color!
[23:10:31] *** MistahKurtz has quit IRC
[23:10:31] *** jedimind has joined #angularjs
[23:10:32] *** blomman has quit IRC
[23:10:34] <odinn_> FWIW the app is Ionic/Cordova on mobile (at thsi time) so the URLs are never used/visible to user anyway
[23:10:37] *** ColKurtz has joined #angularjs
[23:10:41] <Grokling> odinn_: Could you not just use a common factory/service to cache objects indexable by state, and then put whatever you want into that object?
[23:10:47] *** iribarne has quit IRC
[23:10:58] <ctanga> odinn_: and that $state.go makes a url in the browser as “/whathere?param42=val1&param42=val2&param42=val3
[23:11:03] *** dejanr has joined #angularjs
[23:11:08] <odinn_> cache objects indexible by state, sounds complicated
[23:11:08] *** MistahKurtz has joined #angularjs
[23:11:18] <Grokling> Grab the object in your state resolve, and you've got it done.
[23:11:28] <odinn_> when in effect I just wnat to jump to a view with a customer JS object as data
[23:11:39] <ColKurtz> Is it possible for $httpBackend to respond to any POST requests with a 200 and the same request payload?
[23:11:43] <odinn_> s/customer/custom/
[23:11:54] *** Huevos has quit IRC
[23:12:04] *** mjs2600 has quit IRC
[23:12:17] <ctanga> odinn_: typicall you’d pass the ID as the parameter, and retrieve the object from a service in the resolve
[23:12:31] *** MrBaboon has quit IRC
[23:12:33] <wafflej0ck> yup
[23:12:38] <odinn_> ctanga: yes that is exactly what I would do, I am using simple objects/data
[23:12:40] <wafflej0ck> er I do it in the controller a lot
[23:12:41] <Grokling> odinn_: Effectively you're asking "how can I get one controller to communicate with another" and the answers are by 'url' or 'use a service'
[23:12:52] <wafflej0ck> odinn_: why not just pass the id of the object
[23:12:59] *** AngularUI has joined #angularjs
[23:12:59] <AngularUI> [bootstrap] chrisirhc closed pull request #2911: Datepicker improvements (master...master) http://git.io/WsWWAA
[23:13:00] *** AngularUI has left #angularjs
[23:13:00] <odinn_> ctanga: not model object, not complex objects, not deep nested objects
[23:13:01] <jaawerth> nairys: wait,there are two issues actually
[23:13:02] <wafflej0ck> odinn_: have the service provide a method to get the object by id
[23:13:18] *** jharbaugh has quit IRC
[23:13:33] *** gurke_ has quit IRC
[23:13:34] <jaawerth> nairys: you're doing selectedButton='me' - and then ng-class="activeButton: selectedButton === 'me'" for all the buttons
[23:13:35] <odinn_> Grokling: well no, I don't need a URL since it is a HTML5 mobile app, there is no need for URLs just ability for SPA to jump from one view to another
[23:13:50] <Grokling> odinn_: which leaves.....
[23:13:52] <wafflej0ck> only reason I would care about passing extra data in the URL is if it's needed for deep linking
[23:13:53] *** hernan_ has quit IRC
[23:13:53] *** mupkoo has joined #angularjs
[23:14:01] *** krawchyk has joined #angularjs
[23:14:01] *** mupkoo has quit IRC
[23:14:05] <jaawerth> nairys: aka they would ALL be selected because selecting one makes the test pass for ALL of them
[23:14:05] <odinn_> Grokling: the fact that URLs are used somewhere is implemenation detail, not a requirement
[23:14:09] <nairys> jaawerth yeah it's the only way i could figure out how to attach the class but it looks like they're all getting selected
[23:14:17] *** lsiv568 has quit IRC
[23:14:21] <Grokling> odinn_: Yeah, so you use a service...
[23:14:22] <nairys> can't figure out a way around it :(
[23:15:00] <ctanga> odinn_: ui-router states don’t really need urls. you can declare a params: {} object on a state and none in the url
[23:15:17] <ctanga> odinn_: but if I were you I’d wait for 0.2.12 drops before doing that
[23:15:22] <odinn_> what about automatic mode of URL generation like, url: '/something/:param1/:param2?:*' where ':*' has special meaning to automatically handly any other data (not already handled) as QueryString params
[23:15:50] <odinn_> so the "param1" and "param2" are processed and removed, and whatever is left is automatically converted to query string
[23:16:09] <odinn_> that would also work for me as I can define urls like "/thingy?:*" and not care anymore
[23:16:36] <ctanga> there is /something/:param1/:param2/*remainder where *remainder matches everything else on the path, but it has nothing to do with query string
[23:16:46] <odinn_> ctanga: params:{} // is already a feature?
[23:16:54] <ctanga> odinn_: yes but somewhat broken in 0.2.11
[23:17:04] *** Orbitrix has joined #angularjs
[23:17:09] <ctanga> you may get it to work but 0.2.12 is coming pretty soon
[23:17:14] *** ben_dev has quit IRC
[23:17:25] *** shampine has joined #angularjs
[23:17:40] <odinn_> I am trying to et way from '/thingy/:param1/:param2/:param3:/:param4' having to know all the params beforehand
[23:17:41] *** DigitallyBorn has joined #angularjs
[23:17:44] *** narutimateum has quit IRC
[23:18:44] <odinn_> so using '/thingy?:*' would deal with that how to convert and which data to save
[23:18:46] *** Una has joined #angularjs
[23:19:23] <ctanga> so what you’re saying is “I can’t wait for 0.2.12 but totally can you put this new feature that only makes sense for me into 0.2.12”?
[23:19:39] *** ccohn_ has quit IRC
[23:19:40] <odinn_> well you say it is soon, I only hear now, I am just wondering what is there now
[23:19:51] *** shpoont has quit IRC
[23:19:52] <ctanga> definitely ?:* is not now
[23:20:10] <odinn_> I'm not expecting some gurantees on when 0.2.12 is out
[23:20:12] *** ccohn has joined #angularjs
[23:20:15] *** shpoont has joined #angularjs
[23:20:16] <ctanga> soon
[23:20:17] <Grokling> odinn_: So, you want to write a bunch of arbitrary data somewhere, and pass it to another controller to figure out without needing to know what data will be included ahead of time?
[23:20:25] <tkdaj> is scope: { var1 : '@' } basically the same idea as pass by value in directives?
[23:20:25] <jaawerth> nairys: http://plnkr.co/edit/mKnQ9iiSTYWia2dV4uSf?p=preview
[23:20:31] *** gnrlbzik has quit IRC
[23:20:39] *** cameron_ has joined #angularjs
[23:20:42] *** Guevara has joined #angularjs
[23:20:46] *** ccohn has quit IRC
[23:21:02] *** Guevara has left #angularjs
[23:21:04] *** ccohn has joined #angularjs
[23:21:06] <odinn_> Grokling: not a bunch of arbitrary data somewhere, but specifically to the $state context for the current state (and be inheritable by any child states)
[23:21:08] *** kreiggers has joined #angularjs
[23:21:09] <jaawerth> tkdaj: technically that's true, but only because stuff set up with @ is only interpolated as a string
[23:21:18] <odinn_> writing it somewhere is no good, I can use a global for that :)
[23:21:19] *** shanemhansen has left #angularjs
[23:21:34] <tkdaj> so, no matter what you send that way it will come in as a copy of a string
[23:21:36] <nairys> jaawerth black magic
[23:21:36] <jaawerth> tkdaj: it's not unlike grabbing the value manually using the attrs object, only setting it up here will automatically put it on scope for you
[23:21:41] <jaawerth> honestly, I don't really see the point of @
[23:21:47] <tkdaj> ah, okay
[23:21:56] <Grokling> odinn_: Okay, so putting it in an inherited $scope would work out then? Assuming you have nested states of course..
[23:21:56] *** whunt_ has quit IRC
[23:21:56] *** walden is now known as walden|afk
[23:21:58] <jaawerth> &, on the other hand, is AWESOME once you figure it out
[23:22:08] <wafflej0ck> jaawerth: good for things you want interpolated in the parent scope
[23:22:11] <tkdaj> that's just like passing a reference to a function, right?
[23:22:15] *** dreambox_ghost has quit IRC
[23:22:19] *** robdubya has quit IRC
[23:22:22] <tkdaj> using the & I mean
[23:22:24] <wafflej0ck> jaawerth: <widget my-attr="hello {{name}}"> <<-- from the docs
[23:22:34] <Foxandxss> jaawerth: to pass simple strings? :P
[23:22:36] <odinn_> Grokling: well $stateParams already exists, but currently only works if you define a url path ahead of time, but 0.2.12 I hear now should fix this
[23:22:37] <nairys> thanks a ton jaawerth
[23:22:38] <_rmt> has anyone experienced a successful 200 PUT request but then the data doesn't appear to be updated?
[23:22:45] <jaawerth> wafflej0ck: how is that different from doing <my-directiong someattr="{{whatever}}" and then accessing it via attrs?
[23:22:46] *** niop has joined #angularjs
[23:23:00] <jaawerth> that'll still be interpolated in the parent scope
[23:23:01] <tkdaj> oh... So, if you have "hello {{name}}" and you don't pass it with @ it won't be interoplated correctly?
[23:23:21] <odinn_> Grokling: I think ctanga understand the matter as he seems ontop of understand a soltution is on the way
[23:23:31] <odinn_> ctanga: I can probably wait for 0.2.12 if it ready withing a few weeks :)
[23:23:32] *** frankblizzar has joined #angularjs
[23:23:34] *** jwowwz has quit IRC
[23:23:36] <jaawerth> nairys: haha, I know it seems like that but it's actually a key javascript concept. Every value you set on your template is actually a property on your $scope object. Scope inheritance in angular works by javascript's native prototypical inheritance
[23:23:39] <wafflej0ck> well like jaawerth is saying if you access it via the attrs instead of the scope then it'd be fine
[23:23:47] *** doug64k has quit IRC
[23:23:51] <Grokling> odinn_: I'd just use $scope, which is here now, and is inherited by child states..
[23:24:00] *** Eol has quit IRC
[23:24:15] <odinn_> Grokling: but how do I pass te data into it from the $state.go('newStateName') API ?
[23:24:21] *** FIFOd[a] has quit IRC
[23:24:32] <jaawerth> wafflej0ck: which is why I don't see the point of @ when you already have attrs. The only benefit I can think of is it saves you the step of setting it on scope (if you even need to)
[23:24:33] <sacho_> @, = and & are designed for maximum confusion
[23:24:40] <wafflej0ck> tkdaj: jaawerth but yeah basically have used them like Foxandxss said too for passing in some simple value that I don't need binding on
[23:24:52] *** jillesme has quit IRC
[23:24:58] <odinn_> Grokling: without knowing the param names ahead of time, the only suggection is to JSON.stringify a common valid, and I presume undo it
[23:25:11] *** oktapodi has joined #angularjs
[23:25:27] *** ozooner__ has quit IRC
[23:25:28] <Grokling> odinn_: immediately before you do $state.go, you do $scope.whatever = {arbitraryThing1:'asdf', ...}
[23:25:49] <jaawerth> wafflej0ck: oh, the other benefit I can think of is that it's slightly more explicit, since that way you've got the inputs all there in the directive definition
[23:25:52] *** ozooner__ has joined #angularjs
[23:25:57] <jaawerth> which for readability I suppose IS better
[23:26:00] <wafflej0ck> jaawerth: right that's part of why I like it
[23:26:01] <odinn_> Grokling: huh that attached it to the current $scope, not the $scope of the target controller about the new instated for the new state /view
[23:26:22] <wafflej0ck> jaawerth: and if it doesn't need two way binding and it's going to be "read only" the @ makes that clear
[23:26:31] *** discgo has joined #angularjs
[23:26:37] *** dweave has left #angularjs
[23:26:40] <odinn_> Grokling: I don't think you understand the issue, maybe you never used angular-ui-router :)
[23:26:43] <jaawerth> it confuses the CRAP out of people though, and it's hard to google
[23:26:45] <tkdaj> is the & only used with functions?
[23:26:53] <Grokling> odinn_: Which is why I said 'assuming you have nested states' because if you do, you can set it up in the 'base' state, and then it's common everywhere because of inheritance.
[23:26:58] <jaawerth> tkdaj: technically you can use it with anything, but functions are the intended use-case
[23:27:01] <ctanga> odinn: http://plnkr.co/edit/jeLkBFLitVdEKLJrIhhV?p=preview
[23:27:04] <wafflej0ck> tkdaj: it's for "expressions" but typically functions
[23:27:07] <Grokling> odinn_: I ONLY used ui-router ;-)
[23:27:09] <AlexZan> is there a way to programatically tell if a model/property on a model, or a form element is dirty or not?
[23:27:19] <odinn_> odin_: I need to get data from one $scope to another, but it needs to maintain stackable states that are connected to view, this is exactly the function of angular-ui-router project
[23:27:29] <tkdaj> so, is it the same as having a reference/pointer to whatever was sent to &, then?
[23:27:44] *** whunt has joined #angularjs
[23:27:57] <wafflej0ck> AlexZan: https://docs.angularjs.org/api/ng/directive/form
[23:27:58] <jaawerth> tkdaj: like, say you set scope: {foo: '&'} on myDir, then if you do <my-dir foo="i++"> it will iterate $scope.i in your parent scope
[23:28:04] <odinn_> Grokling: it is common, but get overwritten by everything change, this is not working as needed, as inheritance does not work as expected
[23:28:14] <jaawerth> tkdaj: that is, INCREMENT
[23:28:17] *** saucey has joined #angularjs
[23:28:25] <tkdaj> ah, I se
[23:28:27] <tkdaj> see*
[23:28:38] <jaawerth> it's how ng-click and ng-change work
[23:28:53] <AlexZan> wafflej0ck, so do i just check the css then in the controller? there is no cleaner way of doing it?
[23:28:55] <wafflej0ck> tkdaj: yeah details are here but takes some toying with it too https://docs.angularjs.org/api/ng/service/$compile
[23:29:17] <Grokling> odinn_: So put multiple objects in that scope object if you don't want them to get overwritten.
[23:29:17] <wafflej0ck> AlexZan: no keep reading near the bottom
[23:29:27] <odinn_> ctanga: looking at plunkr
[23:29:29] <tkdaj> thanks guys
[23:29:47] <jaawerth> oniijin: how'd you like that directive? kinda neat and simple, right? I wrote that as a thought experiment when someone was asking about conditional ng-click and I thought it was a neat approach
[23:29:54] *** oktapodi has quit IRC
[23:30:08] <odinn_> Grokling: hmm now I need to manage different things, why don't I just use a window.myGlobal for the same idea ?
[23:30:13] *** zz_night-owl is now known as night-owl
[23:30:24] <AlexZan> wafflej0ck, looking but i dont see it :/
[23:30:27] <saucey> can anyone help me with this
[23:30:29] <saucey> http://laravel.io/bin/2WkwG
[23:30:36] <saucey> _ undefined?
[23:30:37] <wafflej0ck> AlexZan: my bad see here too though https://docs.angularjs.org/api/ng/type/form.FormController
[23:30:39] *** vtali has quit IRC
[23:30:45] <odinn_> Grokling: in effect a global would be just as good as your suggestion, as your suggestion does not offer anything on top
[23:30:59] <wafflej0ck> AlexZan: I had hit that last one I linked first but thought the form page went over the $pristine and $dirty flags too
[23:31:04] <Grokling> odinn_: Hold on.. you don't want one thing, and you don't want multiple things. This is going to be difficult ;-)
[23:31:12] *** ccohn has quit IRC
[23:31:13] *** Jdubs has quit IRC
[23:31:25] <odinn_> Grokling: your sugestion is no better than simply using a global ! maybe you don't see that
[23:31:42] *** gnrlbzik has joined #angularjs
[23:31:53] <saucey> http://laravel.io/bin/2WkwG
[23:31:54] *** _lexjm has joined #angularjs
[23:32:07] *** lele has quit IRC
[23:32:17] <wafflej0ck> odinn_: are you using services/factories yet at all?
[23:32:24] *** marshall has joined #angularjs
[23:32:25] *** gnrlbzik has joined #angularjs
[23:32:29] *** freeman42 has quit IRC
[23:32:29] <AlexZan> wafflej0ck, no worries, thanks, I was looking at this earlier, but what i am trying to do, is not pass along any data that hasnt changed per proprety, that seems to be controller wide $dirty check?
[23:32:31] *** pingupingu has joined #angularjs
[23:32:32] <Grokling> odinn_: I do see that. I also see that you don't want to consider this approach, so I'll bow out now.
[23:32:32] <AlexZan> unless im mistaken
[23:32:39] <jaawerth> odinn_: wait, so your issue is that you need to pass data between states, but you don't always know what data will need to be passed?
[23:32:39] <odinn_> wafflej0ck: yes of course
[23:33:15] *** cthrax has quit IRC
[23:33:18] <odinn_> Grokling: why use your complicated idea, when I can use a simple global instead, I took your suggestion and simplified it, thats all, I understand I can use a global thanks!
[23:33:29] *** MrBaboon has joined #angularjs
[23:33:33] <wafflej0ck> odinn_: okay just asking... just watching from the sidelines but sounded like your initial issue could be solved with a service/factory
[23:33:40] <jaawerth> hey come on, no need to be so sarcastic
[23:33:43] *** doginal has quit IRC
[23:34:16] <Grokling> Nah - that's cool. I'll just invest my effort somewhere else for a while ;-)
[23:34:19] <odinn_> wafflej0ck: they don't track $state like angular-ui-router, but yes I understand I can move the data somewhere else, so we one stop down than a global and putting it into a service/factory :)
[23:34:24] <wafflej0ck> AlexZan: same exists on the model controller it looks like https://docs.angularjs.org/api/ng/type/ngModel.NgModelController
[23:34:24] *** lele has joined #angularjs
[23:34:33] <wafflej0ck> odinn_: yup
[23:34:39] *** Una has quit IRC
[23:34:43] *** krawchyk has quit IRC
[23:34:47] *** whitebook has joined #angularjs
[23:34:50] <ctanga> good lord… quit arguing and go view my plunkr
[23:34:57] <jaawerth> seriously
[23:34:59] <jaawerth> hahaha
[23:35:00] *** shpoont has quit IRC
[23:35:16] *** blomman has joined #angularjs
[23:35:19] *** shpoont has joined #angularjs
[23:35:20] <odinn_> going, I was just trying to explain the suggestion made was a glorified global :) maybe he did not see that, I think him again for this efforts
[23:35:34] <odinn_> s/going/doing/ (looking plunkr)
[23:35:35] <ctanga> yes yes, we all see how smart you are
[23:35:36] *** jagga has quit IRC
[23:35:40] *** the-anconia has quit IRC
[23:36:14] *** vtali has joined #angularjs
[23:36:30] *** jonathanpglick has quit IRC
[23:36:42] *** savantgarde has quit IRC
[23:36:44] *** robdubya has joined #angularjs
[23:36:45] *** apertoire has joined #angularjs
[23:36:47] *** freeman42 has joined #angularjs
[23:36:58] *** doug64k has joined #angularjs
[23:36:59] *** devinandrews has quit IRC
[23:37:04] <ctanga> that plunk uses 0.2.11
[23:37:13] <AlexZan> wafflej0ck, thanks looking at that now :D
[23:37:17] *** jonathanpglick has joined #angularjs
[23:37:39] <jaawerth> ctanga: wait, how long have you been able to do that?
[23:38:06] <ctanga> not sure to be honest, I think for some time
[23:38:18] *** cthrax has joined #angularjs
[23:38:22] <ctanga> it used to be array of param names
[23:38:32] *** opiates has joined #angularjs
[23:38:32] *** Raul has joined #angularjs
[23:38:34] <ctanga> now it’s an object map, but it’s got some broken corners
[23:38:41] *** IanOlson has quit IRC
[23:38:50] <ctanga> the docs even mention it
[23:38:56] *** Raul is now known as Guest57433
[23:39:08] <Guest57433> hi!! quisiera saber si ustedes tienene ejemplos de hacer testing end to end,
[23:39:32] <Guest57433> cuando de clic a un boton pueda agregar un elemento html
[23:39:42] <ctanga> params - {object=} - An array of parameter names or regular expressions. Only use this within a state if you are not using url. Otherwise you can specify your parameters within the url. When a state is navigated or transitioned to, the $stateParams service will be populated with any parameters that were passed.
[23:39:56] *** blomman has quit IRC
[23:39:56] <jaawerth> ctanga: also I can't help but notice nothing shows up in the URL too
[23:39:58] <ctanga> its not an array anymore it’s a map
[23:39:59] <jaawerth> which is nice
[23:40:13] <ctanga> and the value of the keys is the “default parameter value"
[23:40:14] *** cs44 has joined #angularjs
[23:40:18] <cs44> hello room
[23:40:28] <cs44> ui-router best practices question for ya
[23:40:30] *** shpoont has quit IRC
[23:40:32] *** jr3 is now known as thewalls
[23:40:35] <thewalls> hello cs44
[23:40:37] <ctanga> params: { param1: “foo” } is shorthand for params: { param1: { value: “foo” } }
[23:40:37] *** vtali_ has joined #angularjs
[23:40:42] *** thewalls is now known as jr3
[23:40:49] *** vtali has quit IRC
[23:40:56] *** mjs2600 has joined #angularjs
[23:41:02] <cs44> i have an abstract route '/app'
[23:41:18] <cs44> some children, say: '/app/foo' & '/app/bar'
[23:41:33] <cs44> i'd like to conditionally route between 'foo' and 'bar'
[23:41:42] <cs44> i'm doing this in an abstract controller
[23:41:48] <cs44> that said, it works the FIRST time
[23:41:52] *** basiclaser_ has quit IRC
[23:41:57] *** cameron_ has left #angularjs
[23:42:04] <cs44> but not subsequently, as the controller is only fired once
[23:42:09] <jaawerth> ctanga: this makes that stupid flash service I wrote one deranged night even more pointless
[23:42:11] <ctanga> correct
[23:42:13] <cs44> (as documented)
[23:42:21] <ctanga> jaawerth: hehe
[23:42:24] <cs44> would it make sense to use $scope.$on() in that abstract controller?
[23:42:24] <ctanga> yeah
[23:42:53] <jaawerth> though I do think a similar concept still has some uses
[23:42:53] *** loverajoel has quit IRC
[23:43:08] <ctanga> cs44: you want to redirect when they navigate directly to “/app” and not when they navigate to “/app/foo”?
[23:43:09] *** odinn_ has quit IRC
[23:43:17] *** iribarne has joined #angularjs
[23:43:27] <jaawerth> like, if you need to share temporary data between multiple parts of your app, it seems like a dedicated service for storing temporary data and handling cleanup would be better than having to whip up a service for each use-case
[23:43:31] *** intellix has joined #angularjs
[23:43:53] *** dcherman has quit IRC
[23:43:53] *** Jdubs has joined #angularjs
[23:44:05] <cs44> ctanga: /app is abstract, so if they hit either 'foo' or 'bar' -- redirect if needed
[23:44:07] <cs44> that make sense?
[23:44:08] <cs44> =)
[23:44:15] *** whunt is now known as boner420
[23:44:23] *** boner420 is now known as whunt
[23:44:34] *** michaelSharpe has quit IRC
[23:44:37] <ctanga> sounds like deep state redirect in ui-router-extras
[23:44:57] <cs44> ctanga: you dont say.... =)
[23:45:02] <cs44> hadn't heard of it
[23:45:04] *** gnrlbzik has quit IRC
[23:45:13] <jaawerth> why not just use a resolve?
[23:45:14] <ctanga> oh wait, you want it to redirect to /app/bar if they go to /app/foo ?
[23:45:20] *** anapitupulu has quit IRC
[23:45:59] *** Nijikokun has joined #angularjs
[23:46:05] *** whitebook has quit IRC
[23:46:11] *** moafoca has quit IRC
[23:46:13] *** Guest57433 has quit IRC
[23:46:37] *** MaxV_ has joined #angularjs
[23:46:46] <Fire-Dragon-DoL> SLIM CONTROLLERS
[23:46:48] <cs44> ctanga: yeah
[23:46:50] *** AngularUI has joined #angularjs
[23:46:51] <AngularUI> [ng-grid] PaulL1 pushed 1 new commit to fix-tests-1.3.0: http://git.io/0_Sp7A
[23:46:51] <AngularUI> ng-grid/fix-tests-1.3.0 fabcf91 Paul Lambert: Changes to animations
[23:46:51] *** AngularUI has left #angularjs
[23:46:52] <Fire-Dragon-DoL> enjoy this 800+ lines controller.
[23:47:01] *** whitebook has joined #angularjs
[23:47:12] <cs44> jaawerth: is this what resolve was intended for?
[23:47:13] *** armitage7 has quit IRC
[23:47:18] <jaawerth> no
[23:47:19] <jaawerth> heh
[23:47:20] <ctanga> well that seems odd. what’s the use case?
[23:47:22] <cs44> =)
[23:47:31] <jaawerth> BUT resolves fire before the state has actually loaded
[23:47:35] <ctanga> you’ll end up having to use $stateChangeStart
[23:47:37] <jaawerth> and that fact makes them useful for a lot of things
[23:47:43] <cs44> jaawerth: totally
[23:47:53] <jaawerth> but yeah, the other way would be to listen for $stateChangeStart in your parent controller, and handle the redirects that way
[23:48:10] <cs44> ctanga: let's say, if a user goes to 'foo' but doesnt have any Foo, then 'bar' is where they sholuld land
[23:48:12] <cs44> ok
[23:48:15] <jaawerth> I hate using events though :(
[23:48:19] <cs44> same
[23:48:20] *** dsdeiz has quit IRC
[23:48:20] <jaawerth> but in that case, it kinda makes sense
[23:48:22] <cs44> but if i have too
[23:48:24] <cs44> ok.
[23:48:26] <cs44> cool.
[23:48:28] *** whitebook has quit IRC
[23:48:31] <_rmt> I am hung up on creating a custom put request... reading doc here: https://docs.angularjs.org/api/ngResource/service/$resource
[23:48:47] <cs44> jaawerth, ctanga: thanks for talking me through this one
[23:48:48] <cs44> =)
[23:49:01] <themime> _rmt: i just use a factory and write my own get/post methods
[23:49:13] <themime> _rmt: it seems to be a common alternative to $resource
[23:49:29] *** odinn_ has joined #angularjs
[23:49:39] *** MaxV__ has joined #angularjs
[23:49:42] <odinn_> sorry this IRC client is horid and keeps disconnecting
[23:49:45] <odinn_> ok so if I used params, I use a single fixed variable and place me object as the value, not use 'params' directly to store multiple things
[23:49:51] <_rmt> themine: something like: .factory('Company', function ($resource) { return $resource('/api/registered_companies/:id', null, { 'get' : { method : 'GET', isArray : true }, 'update' : { method : 'PUT' } });
[23:49:59] <_rmt> ?
[23:50:00] <themime> _rmt: use plunker
[23:50:05] <ctanga> odin_: yes that’s one approach that should work
[23:50:07] <odinn_> the I should be ok with 0.2.11 and not stress it too much
[23:50:12] <_rmt> k, will make one
[23:50:18] <themime> _rmt: but no, not using $resource at all. using $http instead
[23:50:44] <_rmt> so instead of using $resource replace with $http?
[23:50:47] <themime> if you have to use $resource or are stuck on it someone else will have to help you
[23:51:01] <ctanga> odin_: just be aware there may be some edge cases changing in 0.2.12
[23:51:02] *** niop has quit IRC
[23:51:06] <ctanga> for the better of course
[23:51:07] *** MaxV_ has quit IRC
[23:51:13] <_rmt> could you show me an example of your $http factory?
[23:51:16] <jaawerth> odinn_: yeah, your object could then be whatever you want and contain whatever you want. You could even make it a proper objects with prototypical methods and things for storing and retrieving data if you wanted to.
[23:51:17] <themime> yea i just do a $http.post when i want to send something to the server and $http.get wrapped in a promise
[23:51:18] <AlexZan> wafflej0ck, would you mind lending me a hand with using that? If you have a minute
[23:51:24] <_rmt> well
[23:51:24] <themime> _rmt: one sec
[23:51:27] <_rmt> I want to update
[23:51:36] <_rmt> not necessarily post
[23:51:40] *** mjs2600 has quit IRC
[23:51:41] *** ngbot has joined #angularjs
[23:51:41] <ngbot> [angular.js] caitp pushed 1 new commit to master: http://git.io/P2J3GQ
[23:51:42] <ngbot> angular.js/master 187e431 Marcy Sutton: feat(ngAria): announce ngMessages with aria-live...
[23:51:42] *** ngbot has left #angularjs
[23:51:49] <jcool> I iwsh to have somethin like: {0:{},1:{}}
[23:51:49] *** niop has joined #angularjs
[23:51:51] <jaawerth> odinn_: but a simple referential array would probably be good enough in most cases ;-)
[23:51:59] <jcool> how can I incremenmt those numbers
[23:52:19] <jcool> pushing is fine but it is a 2d array.
[23:52:33] <jaawerth> jcool: that is an object, not an array
[23:52:35] <themime> god is plunker slow as balls for anyone else
[23:52:56] <themime> _rmt: what do you think post means?
[23:52:58] *** Jdubs has quit IRC
[23:53:04] <jcool> jaawerth, but we can define 2d json right?
[23:53:22] <themime> _rmt: post just sends data to a server, its up to your backend to do the updating
[23:53:25] <jaawerth> sure
[23:53:39] <ctanga> jcool: what use case?
[23:53:42] <jaawerth> I guess I'm not really understanding the question though
[23:53:43] <AlexZan> wafflej0ck, nm i think i have it :D thanks
[23:53:43] <_rmt> let's say I create a new object
[23:53:44] *** jonathanpglick has quit IRC
[23:53:49] <_rmt> and want to update that object
[23:53:54] <_rmt> wouldn't posting be creating
[23:53:59] *** MaxV__ has quit IRC
[23:53:59] <_rmt> and putting be updating?
[23:54:02] <jaawerth> jcool: yeah, what ctanga said ;-)
[23:54:07] <_rmt> POST vs. PUT?
[23:54:22] *** doginal has joined #angularjs
[23:54:31] <jaawerth> _rmt: that's the idea, yes. PUT = idempotent, POST = not
[23:54:37] <jcool> I have to give my backend a structure like: 0=>[[name]=>value,[number]=>value]
[23:54:50] <jcool> so it can be any no of values
[23:54:50] <themime> _rmt: https://docs.angularjs.org/api/ng/service/$http put is also available im just lazy and use post for it all
[23:55:10] <jaawerth> jcool: so... an array of objects?
[23:55:16] *** crewshin has quit IRC
[23:55:36] <jaawerth> generally we refer to that as a collection
[23:55:53] <jcool> jaawerth, yeah. so what I did was. $scope.a.pus ({a:a,b:b})
[23:55:57] <_rmt> themine: I read the documentation for using $http.put
[23:55:57] <jcool> jaawerth, ah yes.
[23:56:09] *** elrabin_ has joined #angularjs
[23:56:12] <jaawerth> and in the simplest form it's [{key1: val1, key2: val2, key3:val3}]
[23:56:27] <jaawerth> yourArray.push(obj)
[23:56:45] <jaawerth> lodash also has a number of very useful utility functions for dealing with collections
[23:56:47] <jcool> agreed but it wont generate arrat like bakend wants..
[23:56:55] <jcool> array*
[23:57:01] <jcool> backend*.argh
[23:57:01] <AlexZan> how would i check that one of my model properties is dirty or not, its bound to a span that shows a list, so i cant check if the form input in this case dirty as usual
[23:57:39] <jaawerth> jcool: so you mean.. you need arbitrary keys?
[23:57:51] <jcool> jaawerth, nope.increment order
[23:57:58] *** codeman has quit IRC
[23:58:09] <jcool> What I have is one link. which calls function. and each time taht func is called it adds element
[23:58:27] <jcool> everything is good. I am just missing that 0,1,2 thing
[23:58:27] <jaawerth> jcool: so.. basically you have an array [ ], and in that array is an object { }, and in that object one of the keys needs to be a number that increments as you increment the array?
[23:58:37] *** xavia has quit IRC
[23:58:58] <jcool> [0:{a:a,b:b}]
[23:59:01] <jcool> somethine like this
[23:59:04] *** masterphi has quit IRC
[23:59:17] <jcool> key:value, where value is another object
[23:59:20] <jaawerth> do you mean [{0: {a:a,b:b}}]?
[23:59:25] <jcool> yep
[23:59:35] *** alexw has quit IRC
[23:59:42] <ctanga> wait, you need your array indexes to be specified inside the object??
[23:59:44] <jaawerth> ah. you just have to build the object in a way that doesn't use an object literal
[23:59:46] *** elrabin has quit IRC
[23:59:56] *** poolside has quit IRC
top

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