[00:00:03] <phrozensilver> how do I fix no 'Access-Control-Allow-Origin' error again
[00:00:29] *** nemothekid has quit IRC
[00:00:32] *** thebigredgeek has joined #angularjs
[00:00:57] *** phuh has quit IRC
[00:01:00] <phrozensilver> do I need to do app.use('cors')
[00:01:14] <thebigredgeek> app.use(cors());
[00:01:22] <thebigredgeek> it returns a middleware function
[00:01:29] *** bphogan is now known as bphogan_afk
[00:01:44] <phrozensilver> I need to put that on my api server?
[00:01:56] *** s3cr3t has quit IRC
[00:02:32] <da_wunder> phrozensilver: really hard to say, because you don't provide any info
[00:02:34] *** bphogan_afk is now known as bphogan
[00:02:35] *** slainer68 has joined #angularjs
[00:02:35] *** phuh has joined #angularjs
[00:02:50] <da_wunder> eg. what are you using at server side
[00:03:12] <da_wunder> code examples where error occurs, and so on...
[00:04:12] *** davek has quit IRC
[00:04:14] *** tyfighter has joined #angularjs
[00:04:19] *** thebigredgeek has quit IRC
[00:05:52] *** Sky[x] has quit IRC
[00:05:59] *** danielpquinn has joined #angularjs
[00:06:37] *** ngoyal has quit IRC
[00:06:38] <phrozensilver> then I'm trying to do a $http.get()
[00:06:40] <phrozensilver> in angular
[00:06:48] *** tschundeee has quit IRC
[00:06:51] *** xat- is now known as xAt
[00:07:26] *** nathggn__ has quit IRC
[00:07:36] *** ngoyal has joined #angularjs
[00:07:47] *** aarellano has quit IRC
[00:08:16] <phrozensilver> nope I will check it out thnaks
[00:08:21] *** TorpedoSkyline has quit IRC
[00:08:23] *** fedenunez has joined #angularjs
[00:08:51] <phrozensilver> litterally just got started this weekend on looking into mean.io and things like that, I basically want to be able to build an angular js app that can read/ write data
[00:08:53] *** ngoyal has joined #angularjs
[00:09:25] *** aarellano has joined #angularjs
[00:10:21] *** jdowdle is now known as jdowdle|afk
[00:10:46] *** danielpquinn has quit IRC
[00:10:47] *** ceephax has quit IRC
[00:11:08] <phrozensilver> sailjs looks pretty great
[00:11:44] <robdubya_> it is
[00:12:06] <da_wunder> yep, that boilerplate uses that
[00:12:15] *** ceephax has joined #angularjs
[00:12:18] *** gunn has quit IRC
[00:13:42] *** bertrandk has joined #angularjs
[00:13:47] *** davzie has joined #angularjs
[00:13:58] *** shinnya has quit IRC
[00:14:07] <phrozensilver> What OS do you all use? Anyone recommend a different command line for Windows other than the regular one and PowerShell?
[00:14:16] *** ngoyal has quit IRC
[00:15:15] *** ajk27 has quit IRC
[00:15:52] *** ceephax has quit IRC
[00:16:04] <da_wunder> phrozensilver: primary os is windows, but i do all dev on ubuntu virtual machines
[00:16:11] *** caitp has joined #angularjs
[00:16:56] *** prbc has joined #angularjs
[00:16:57] *** JoshGlzBrk has joined #angularjs
[00:17:04] *** millsb_ has joined #angularjs
[00:17:11] <phrozensilver> yeah
[00:17:13] *** AlSquire has quit IRC
[00:17:24] <phrozensilver> I use a VM at work that runs ubuntu for when I need to do work in ruby apps
[00:17:31] *** jae is now known as Jae
[00:17:38] *** TorpedoSkyline has joined #angularjs
[00:17:41] <phrozensilver> im wondering if I should just get into the habbit of always deving in a VM
[00:17:47] *** MANCHUCK has quit IRC
[00:17:48] *** dcherman has joined #angularjs
[00:17:54] *** MetalMatze has quit IRC
[00:18:11] <phrozensilver> do you use the VM to actually dev in or do you use an IDE in windows and preview things on windows browsers?
[00:18:14] *** bertrandk has quit IRC
[00:18:36] *** prbc_ has joined #angularjs
[00:18:57] <da_wunder> virtual machine has IDE, and I use main os just to show those pages
[00:19:25] *** kemm0__ is now known as BobbieBarker
[00:19:41] *** the-erm1 has joined #angularjs
[00:19:54] *** shinnya has joined #angularjs
[00:19:54] <BobbieBarker> <<-- i always dev in a linux VM
[00:19:58] *** diffkid has quit IRC
[00:20:23] <phrozensilver> whats the pros of always deving in linux
[00:20:33] <BobbieBarker> but thats not why i am here
[00:20:40] *** matiasow has quit IRC
[00:20:43] *** joshontheweb has joined #angularjs
[00:20:48] <BobbieBarker> i'm trying to refactor some directives and get away from using scope.$watch in all my linking functions
[00:21:01] <BobbieBarker> i want to use attributes to pass data to directies where appropriate
[00:21:06] <BobbieBarker> but it isn't working as cleanly as i had hoped
[00:21:11] <da_wunder> phrozensilver: one reason is that linux is most likely to host live site
[00:21:25] <phrozensilver> thats true
[00:21:34] <da_wunder> and you wanna to use 1 == 1 systems on dev and live
[00:21:50] *** bphogan is now known as bphogan_afk
[00:21:56] <BobbieBarker> <-- everything works better in linux too and you have more power
[00:22:13] <da_wunder> that's mostly true too
[00:22:17] *** lw has joined #angularjs
[00:22:27] <BobbieBarker> my PM doesn't run shit in linux and he struggles with getting shit to work in windows
[00:22:28] <BobbieBarker> like npm
[00:22:30] <BobbieBarker> bower
[00:22:35] <BobbieBarker> different odds and ends
[00:22:42] *** prbc has quit IRC
[00:22:53] <BobbieBarker> i guess when you try to use tools in windows you have to run other packages to get the windows terminal to work ?
[00:22:54] *** slainer68 has quit IRC
[00:23:15] *** screamingbanshee has joined #angularjs
[00:23:22] <da_wunder> or just install those packages to windows
[00:23:29] <BobbieBarker> that's all real janky though
[00:23:37] <da_wunder> yep
[00:23:43] <BobbieBarker> and you put your OS at risk
[00:23:50] <da_wunder> that too
[00:24:07] <da_wunder> so simply answer is => use VM's to dev
[00:24:18] <BobbieBarker> they think they're so smart cuz they run mac's and windows boxes but every other week their comps are down and my shit works day in day out
[00:24:18] <the-erm1> Personally I think it's harder to do dev in windows.
[00:24:25] *** fedenunez has quit IRC
[00:24:27] <BobbieBarker> <-- vms + linux === stability
[00:24:29] *** fedenunez1 has joined #angularjs
[00:24:52] *** b1rkh0ff has quit IRC
[00:24:56] <phrozensilver> what vm programs do you use? I've used the oracle one
[00:24:57] <BobbieBarker> only thing i use windows for anymore is google hand outs for team meetings
[00:25:02] <BobbieBarker> virtual box
[00:25:05] <phrozensilver> with just like ubunut
[00:25:12] <da_wunder> virtualbox
[00:25:16] <BobbieBarker> i like linux mint, it's based on ubuntu
[00:25:33] <BobbieBarker> linux mint with a KDE desktop
[00:25:40] <da_wunder> and all of those are based to Debian :D
[00:25:51] <the-erm1> I've been running antegros. It's kinda nice. It's arch based.
[00:25:55] <BobbieBarker> .... i was pretty sure it was ubuntu, but they have debian version?
[00:25:59] *** dammian has joined #angularjs
[00:26:14] <da_wunder> BobbieBarker: ubuntu and mint are basically debian
[00:26:22] <the-erm1> Don't quote me, but I think mint is based off debian now.
[00:26:25] <BobbieBarker> ah, i'm not the linux officienado i used to be lol
[00:26:32] <BobbieBarker> yeah i just looked it looks like mint 17 is debian
[00:26:33] *** night-owl2 has joined #angularjs
[00:26:36] *** tyfighter has quit IRC
[00:26:57] <the-erm1> I think mint used to be based off ubuntu.
[00:27:03] *** lucasefe has quit IRC
[00:27:05] *** phrozensilver has quit IRC
[00:27:06] <da_wunder> but you should always use same os on your dev environment that you're using on production
[00:27:22] *** screamingbanshee has quit IRC
[00:27:37] *** ajk27 has joined #angularjs
[00:27:40] *** AlbinoTux has joined #angularjs
[00:27:46] <BobbieBarker> i think mint used to be based of ubuntu too... i started with like mint 10, and i am on a mint 16 box... and apparently they are up to mint 17 now
[00:27:49] <BobbieBarker> anyways good project
[00:28:01] <da_wunder> with exactly same packages and etc.
[00:28:02] *** Willow has joined #angularjs
[00:28:16] *** bealtine has quit IRC
[00:28:19] *** lucasefe has joined #angularjs
[00:28:27] <da_wunder> and ubuntu is based on debian...
[00:28:37] <BobbieBarker> yeah that's ideal da_wunder but it's a pain in the ass to set up. I think if you're atleast on the same architecture or w/e like same flavor of linux with a pretty clean box you'll be ok
[00:28:48] <BobbieBarker> most deployment enviroments are clean set ups
[00:28:52] <BobbieBarker> with just the app on it
[00:29:04] <da_wunder> BobbieBarker: why is that so hard?
[00:29:07] *** greengriminal has quit IRC
[00:29:09] <BobbieBarker> cuz i'm lazy?
[00:29:24] <da_wunder> then it's not hard, you're just lazy
[00:29:29] <BobbieBarker> precisely
[00:29:38] <da_wunder> and you will pay prize of that at sometime
[00:29:41] <da_wunder> trust me
[00:29:43] <BobbieBarker> probably not
[00:29:56] <da_wunder> i have done this shit too long...
[00:30:26] *** jamesshijie has joined #angularjs
[00:31:01] *** nanoyak has joined #angularjs
[00:32:34] *** Willow has quit IRC
[00:32:56] *** JosephBergevin has quit IRC
[00:32:57] *** simb has quit IRC
[00:33:03] <the-erm1> Is there a way to do a dynamic tooltip? In particular one that can use <ng-repeat> bootstrap uses data-content="<a href=''>whatever</a>" I tried data-content="<a ng-repeat href=''>{{some stuff}}</a>" which obviously didn't work :)
[00:33:46] <the-erm1> If I were using underscore js I'd just create a <script type="text/template"> tag and use that.
[00:33:53] <the-erm1> Perhaps that's what's needed in this case.
[00:34:09] <BobbieBarker> the-erm1 use angular strap
[00:34:15] <the-erm1> ok
[00:34:17] <the-erm1> thanks.
[00:34:22] <BobbieBarker> you can write a tooltip witha custom template
[00:34:26] <BobbieBarker> if you want/need
[00:34:37] <BobbieBarker> and it's an easy fit to your project if you're using bootstrap already
[00:34:48] *** jamesshijie has quit IRC
[00:35:05] *** bertrandk has joined #angularjs
[00:35:27] *** jamesbdev has joined #angularjs
[00:35:55] *** encrypt3d_fracti has quit IRC
[00:36:02] *** rho has quit IRC
[00:36:22] *** secondjeff has joined #angularjs
[00:36:22] *** sixr420 has joined #angularjs
[00:36:26] *** mdedetrich has joined #angularjs
[00:37:06] *** joshontheweb has quit IRC
[00:37:44] *** greggsi has joined #angularjs
[00:37:45] *** nemothekid has joined #angularjs
[00:37:52] *** prbc_ has quit IRC
[00:38:12] *** prbc has joined #angularjs
[00:39:00] *** lw has quit IRC
[00:39:13] *** phrozensilver has joined #angularjs
[00:39:28] *** MANCHUCK has joined #angularjs
[00:40:05] *** TorpedoSkyline has quit IRC
[00:40:11] *** anjumkaiser has quit IRC
[00:40:30] *** tyfighter has joined #angularjs
[00:40:42] *** kanzure_ is now known as kanzure
[00:41:28] *** secondjeff has quit IRC
[00:41:38] <the-erm1> Angular-strap looks really nice.
[00:43:13] *** zwacky has quit IRC
[00:43:13] *** disorder20 has quit IRC
[00:43:29] *** plitzenberger has quit IRC
[00:44:25] *** disorder20 has joined #angularjs
[00:44:59] *** Grokling_ has quit IRC
[00:45:00] *** bealtine has joined #angularjs
[00:45:38] <moogumbo> Is it an anti-pattern to use scope.$watch inside of my directive's link function?
[00:46:25] <moogumbo> Generally, how should I go about getting the directive to "re-render" the element when some data changes?
[00:47:15] <sock_sorcerer> you should very rarely need to use scope.$watch
[00:48:00] *** Jeff__ has joined #angularjs
[00:48:01] <Jeff__> HEllo
[00:48:09] <sock_sorcerer> if you have say scope.myObject, and change scope.myObject.myProperty, angular should catch that during the digest cycle and rerender your elements
[00:48:18] <gjvc> the-erm1, it looks pretty comprehensive
[00:48:20] *** simb has joined #angularjs
[00:48:27] *** xastey has quit IRC
[00:48:35] *** caitp has quit IRC
[00:48:37] <Jeff__> I have a question about the angular tutorial from the angularjs.org site
[00:48:55] <Jeff__> When we pull the phones.json using $http
[00:49:25] <Jeff__> Its clear as to what is happening. ... When we switch to using routes ... I am lost to how it knows to pull phones.json ...
[00:49:49] <Jeff__> Anyone familiar with this tutorial and using route vs. $http
[00:50:31] <da_wunder> Jeff__: link to page which you're referring would be helpfull
[00:50:48] <moogumbo> sock_sorcerer: Sure, that would work if my directive was just using a template, but this directive has no template. It only has a render() method that I defined inside link, which calls an external JS lib to render a graph into the DOM
[00:51:47] *** intellix has quit IRC
[00:52:07] <sock_sorcerer> moogumbo: then that would probably use a use case for $watch
[00:52:27] *** InezK is now known as InezK_away
[00:52:36] *** JakeSays has quit IRC
[00:52:38] <da_wunder> Jeff__: and it fetched that whenever controller is runned?
[00:52:52] *** Daniel_yo has quit IRC
[00:53:24] *** slainer68 has joined #angularjs
[00:53:44] *** kofight has quit IRC
[00:53:59] <da_wunder> Jeff__: those are just a AJAX calls basically... What is your problem?
[00:54:28] <Jeff__> I am confused because in step 05 we clearly defined to get phones.json ... in step 11 we get "'phones/:phoneId.json" ... My confusion lies in how does it know to access phones.json still as it did in step 5
[00:54:33] <moogumbo> sock_sorcerer: The reason it feels suboptimal is because I know exactly when I need to re-render, and it's not on every digest cycle... it's only once, when a promise from $http comes back with fresh data
[00:54:51] <moogumbo> So it would be nice to use something that is not as performance-intensive as $watchCollection
[00:54:54] *** LoveAndHappiness has joined #angularjs
[00:55:00] <LoveAndHappiness> hi there
[00:55:10] <sock_sorcerer> why not run it after your promise handler does it work, then
[00:55:10] <sock_sorcerer> ?
[00:55:21] <LoveAndHappiness> has anyone here any experience with google chrome extensions?
[00:55:28] <LoveAndHappiness> how big can those extensions actually be?
[00:55:36] <moogumbo> Does that I mean I should hand off the promise object to the directive, so it can hook in?
[00:55:59] <moogumbo> That feels weird too, like it's exposing an implementation detail of the model layer to the view
[00:56:04] <sock_sorcerer> i would probably fire an event at the end of my promise that the directive is listening for
[00:56:21] <moogumbo> Hm. Using $rootScope.$emit ?
[00:56:48] <sock_sorcerer> i tend to use $broadcast, and then $scope.$on instead of $rootScope.$on
[00:57:01] <sock_sorcerer> but the end result is the same
[00:57:29] *** ome has quit IRC
[00:57:37] <moogumbo> Hm, ok. I'll try that.
[00:57:37] *** wim has joined #angularjs
[00:58:00] <da_wunder> Jeff__: with details it uses other json files
[00:58:24] *** btyne has joined #angularjs
[00:58:25] <da_wunder> which contains all the necessary data for selected phone
[00:58:28] *** MuffinMan` has quit IRC
[00:58:39] *** tyfighter has quit IRC
[00:59:24] <Jeff__> da_wunder: Yes, It makes sense when we route to phoneId we then show the details page which pulls the data from that file. I am confused how we our initial list is filled with the data from phones.json
[00:59:50] *** btyne has quit IRC
[01:00:00] *** slainer68 has quit IRC
[01:01:00] <da_wunder> Jeff__: $scope.phones = Phone.query();
[01:01:02] *** rtpg has joined #angularjs
[01:01:08] <da_wunder> that will fetch that data
[01:01:20] <Jeff__> okay ...
[01:01:36] <Jeff__> Do you know..how it knows to call phones.json specifically?
[01:02:07] <da_wunder> look at that service
[01:02:11] *** phuh has quit IRC
[01:02:20] <da_wunder> it's explained on that tutorial page
[01:02:24] <Jeff__> $resource('phones/:phoneId.json',{},{query:{method:'GET',params:{phoneId:'phones'},isArray:true}
[01:02:28] *** btyne has joined #angularjs
[01:02:38] *** phuh has joined #angularjs
[01:03:49] <Jeff__> okay ... Thanks da_wunder ..... "params:{phoneId: 'phones'} is initial declaration of value
[01:04:01] *** halsell has quit IRC
[01:04:04] *** bahoo has quit IRC
[01:04:21] *** JakeSays has joined #angularjs
[01:04:31] <Jeff__> da_wunder: Thanks for talking it out with me ....
[01:04:40] <da_wunder> np
[01:04:54] *** codedungeon has joined #angularjs
[01:04:59] *** lordkryss has quit IRC
[01:05:19] *** bahoo has joined #angularjs
[01:05:21] *** JoshGlzBrk has quit IRC
[01:06:08] *** mettjus has joined #angularjs
[01:06:13] <raijin> well then
[01:06:50] <raijin> I am wondering if , when using an angular app in mezzanine, if one is able to use mezzanine tags within the app
[01:06:55] *** danielpquinn has joined #angularjs
[01:07:59] *** disorder20 has quit IRC
[01:08:24] *** derwitsch has joined #angularjs
[01:09:51] *** holymac has joined #angularjs
[01:10:05] *** jshultz has joined #angularjs
[01:10:53] *** LoveAndHappiness has quit IRC
[01:11:15] *** epantzar has quit IRC
[01:11:26] *** danielpquinn has quit IRC
[01:12:18] <robdubya_> whats mezzanine
[01:13:13] *** LoveAndHappiness has joined #angularjs
[01:14:39] *** rtpg has quit IRC
[01:15:28] <BahamutWC|Work> it’s a Django CMS
[01:15:31] *** TorchDragon has joined #angularjs
[01:15:42] *** prbc has quit IRC
[01:16:07] *** Jae has quit IRC
[01:16:24] *** prbc has joined #angularjs
[01:16:51] <phrozensilver> think I will switch to deving on linux, ive been having some issues with mongodb
[01:16:59] *** mdedetrich has quit IRC
[01:17:14] <robdubya_> cough *get a mac* cough
[01:18:20] <da_wunder> still i would use VM's
[01:18:23] *** DoubleAW has joined #angularjs
[01:18:35] <phrozensilver> yeah, next laptop = mac
[01:18:58] *** fedenunez1 has quit IRC
[01:18:59] <da_wunder> really i don't want to install any "not needed" stuff on my computer
[01:19:18] <da_wunder> within VM's you can make those freely
[01:19:51] <phrozensilver> yeah theres no extra folders/ weird apps running
[01:19:52] *** kotyy has joined #angularjs
[01:20:03] *** TorchDragon has quit IRC
[01:20:10] <phrozensilver> I like that I can copy my VM too
[01:20:24] <da_wunder> phrozensilver: then use vagrant
[01:20:26] *** ngoyal has joined #angularjs
[01:20:37] *** mettjus has quit IRC
[01:20:39] <da_wunder> just add vagrant config to your app root and that is
[01:20:44] *** AWAW has quit IRC
[01:20:45] <da_wunder> is => it
[01:20:48] *** mettjus has joined #angularjs
[01:21:00] *** prbc has quit IRC
[01:21:51] *** prbc has joined #angularjs
[01:22:55] *** DrMabuse has quit IRC
[01:23:00] *** knownasilya has quit IRC
[01:24:23] *** zanea is now known as zanea|away
[01:24:38] <BobbieBarker> robdubya macs suck
[01:25:19] *** moritzs has joined #angularjs
[01:25:26] *** Joseph_Silber has quit IRC
[01:26:10] <da_wunder> movie where word "fuck" is used a lot :D
[01:26:13] *** holymac_ has joined #angularjs
[01:26:58] <robdubya_> WHERE"S THE FUCKING MONEY SHITHEAD
[01:27:18] <Elezium> Humm.. what's the advantage of putting $scope in front of a function in a controller? (ie: $scope.login() for example) .. it will be available everywhere ?!
[01:27:36] *** pluma has joined #angularjs
[01:27:42] <robdubya_> Elezium it makes it available to the views that use that scope
[01:27:59] *** prbc has quit IRC
[01:28:36] <Elezium> robdubya_, I thought all view can access $scope ?
[01:28:37] *** prbc has joined #angularjs
[01:28:38] *** phrozensilver has quit IRC
[01:29:00] <robdubya_> Elezium nope.
[01:29:04] <robdubya_> its like this
[01:29:09] <robdubya_> you put an ng-controller on a div
[01:29:19] <robdubya_> everything insdie that div has access to that ng-controller's scope
[01:29:26] *** holymac has quit IRC
[01:30:05] <Elezium> robdubya_, yeah.. but if you specify the ng-controller in the div, the function in that controller would be available even if there is no $scope in front of them?
[01:30:09] *** phrozensilver has joined #angularjs
[01:30:17] <robdubya_> nope
[01:30:45] *** danyim has joined #angularjs
[01:31:11] <da_wunder> Elezium: you need $scope.foo = function() {}; if you want to access that in view
[01:31:44] *** ngoyal has quit IRC
[01:31:46] *** Reskp has quit IRC
[01:32:03] <Elezium> crap.. you're right .(I just test it) .. I was sure that all the function in a controller was available in the view without the $scope
[01:32:07] <Elezium> my bad guys
[01:32:42] *** zanea|away is now known as zanea
[01:32:47] *** prbc has quit IRC
[01:33:11] <Elezium> Thanks again ;)
[01:33:19] *** nonsenz has quit IRC
[01:34:50] *** nonsenz has joined #angularjs
[01:35:22] *** danyim has quit IRC
[01:35:39] *** agronholm has quit IRC
[01:35:57] *** rbs has quit IRC
[01:36:03] *** caitp has joined #angularjs
[01:36:20] *** Cydmax has quit IRC
[01:37:42] *** agronholm has joined #angularjs
[01:37:47] *** defaultdict has quit IRC
[01:37:53] <Elezium> Soo... so I have can have 2 controllers with the same function ($scope.wathever) but depending of the ng-controller defined, angular will call run the function inside that controller?
[01:38:24] *** jdowdle|afk is now known as jdowdle
[01:38:28] <BobbieBarker> robdubya do you listen to action bronson?
[01:38:41] *** tschundeee has joined #angularjs
[01:38:46] <sock_sorcerer> Elezium: your controller will be a new instance of that method
[01:38:50] *** phrozensilver has quit IRC
[01:39:07] *** jgladwill has joined #angularjs
[01:39:07] *** jgladwill has joined #angularjs
[01:39:14] <robdubya_> BobbieBarker no
[01:39:20] *** matiasow has joined #angularjs
[01:39:36] <BobbieBarker> also i may of just written a pretty cool edit in place directive
[01:39:59] *** phrozensilver has joined #angularjs
[01:40:17] *** dammian has quit IRC
[01:40:23] <Elezium> Thanks guys! Noted!
[01:41:06] *** Elezium is now known as Elelezium_afk
[01:41:14] *** Elelezium_afk is now known as Elezium_afk
[01:41:33] *** dcherman has quit IRC
[01:41:44] *** phrozensilver has quit IRC
[01:41:50] *** linojon has quit IRC
[01:41:58] *** mamarilmanson has joined #angularjs
[01:42:00] *** mercwithamouth has quit IRC
[01:42:05] *** matiasow has quit IRC
[01:42:19] *** Wills_ has quit IRC
[01:43:14] *** matiasow has joined #angularjs
[01:43:18] <BobbieBarker> lol
[01:44:11] *** mtho11 has joined #angularjs
[01:45:19] *** Nizumzen has quit IRC
[01:45:24] *** LoveAndHappiness has quit IRC
[01:45:53] *** pluma has quit IRC
[01:46:14] *** lw has joined #angularjs
[01:47:23] *** tschundeee has quit IRC
[01:49:05] *** tzu_chi has joined #angularjs
[01:49:38] *** phrozensilver has joined #angularjs
[01:51:02] *** holymac_ has quit IRC
[01:51:18] *** rangle has quit IRC
[01:52:41] *** InezK_away is now known as InezK
[01:52:51] *** bphogan_afk is now known as bphogan
[01:53:03] *** JosephSilber has joined #angularjs
[01:53:18] *** rangle has joined #angularjs
[01:53:52] *** DrMabuse has joined #angularjs
[01:54:39] *** Yahkob has joined #angularjs
[01:55:38] *** TorpedoSkyline has joined #angularjs
[01:55:57] *** lw has quit IRC
[01:56:06] *** {DV8} has joined #angularjs
[01:57:16] *** TorpedoSkyline has quit IRC
[01:58:12] *** AciD`` has quit IRC
[01:58:19] *** DrMabuse has quit IRC
[01:59:39] *** Silne30 has joined #angularjs
[01:59:57] *** simb has quit IRC
[02:02:14] *** phuh has quit IRC
[02:02:17] *** jdowdle is now known as jdowdle|afk
[02:02:21] *** night-owl2 has quit IRC
[02:02:29] *** InezK is now known as InezK_away
[02:02:36] *** linojon has joined #angularjs
[02:02:43] *** phuh has joined #angularjs
[02:04:11] *** caitp has quit IRC
[02:05:04] *** mamarilmanson has quit IRC
[02:05:26] *** InezK_away is now known as InezK
[02:05:42] *** bphogan is now known as bphogan_afk
[02:06:12] *** D-Boy has quit IRC
[02:06:36] *** MistahKurtz has quit IRC
[02:06:39] *** lw has joined #angularjs
[02:06:46] *** lw has quit IRC
[02:07:14] *** [n0b0dy] has quit IRC
[02:07:24] *** [n0b0dy] has joined #angularjs
[02:07:31] *** lw has joined #angularjs
[02:07:32] *** danielpquinn has joined #angularjs
[02:09:02] *** matiasow has quit IRC
[02:10:08] *** Diaoer has quit IRC
[02:10:53] *** night-owl-deskto has joined #angularjs
[02:11:00] *** caitp has joined #angularjs
[02:11:25] *** sneakertack has quit IRC
[02:12:17] *** danielpquinn has quit IRC
[02:13:29] *** agrajag42 has quit IRC
[02:13:47] *** night-owl has quit IRC
[02:15:15] *** matiasow has joined #angularjs
[02:15:18] *** InezK is now known as InezK_away
[02:15:41] *** Foxandxss has quit IRC
[02:16:22] *** kotyy has quit IRC
[02:16:59] *** [n0b0dy] has quit IRC
[02:17:04] *** Hackwar has joined #angularjs
[02:17:12] *** [n0b0dy] has joined #angularjs
[02:17:59] *** Hackwar1 has quit IRC
[02:18:14] *** prbc has joined #angularjs
[02:19:28] *** onats has joined #angularjs
[02:19:48] *** D-Boy has joined #angularjs
[02:20:10] <onats> when loading views via routeProvider, what is the best way to dynamically load controllers within the template html?
[02:20:22] *** rangle has quit IRC
[02:22:41] *** Limix has joined #angularjs
[02:23:22] *** quantax- has joined #angularjs
[02:23:40] *** nanoyak has quit IRC
[02:24:56] *** crankharder has joined #angularjs
[02:25:46] *** matiasow has quit IRC
[02:28:28] *** phuh has quit IRC
[02:28:59] <robdubya_> onats typically you shouldn't, you connect them in the route config
[02:29:31] *** lw has quit IRC
[02:29:49] <onats> robdubya_: if i do that, then i have to define everything in the route config? I would like to do this dynamically so the config doesn’t get quite long. i.e. include the controler and app scripts for each template from within the HTML.
[02:30:07] <robdubya_> you *should* define everything in the route Config
[02:30:08] <onats> robdubya_: it seems that when the template gets loaded, angular assumes that the controllers are already available. is this correct?
[02:30:19] <robdubya_> you can do that in multiple modules if you wish
[02:30:22] *** benjamingr has quit IRC
[02:30:52] <da_wunder> onats: what about resolve?
[02:31:01] <da_wunder> on your route config
[02:31:14] <onats> googling resolve
[02:31:46] *** jamesshijie has joined #angularjs
[02:32:04] *** JoshGlzBrk has joined #angularjs
[02:32:22] *** matiasow has joined #angularjs
[02:33:06] *** danyim has joined #angularjs
[02:35:50] *** Yahkob has quit IRC
[02:36:05] <onats> robdubya_: so from what i understand, all controllers have to be instantiated / initialized already prior to routeProvider?
[02:36:07] *** jamesshijie has quit IRC
[02:36:07] *** house has quit IRC
[02:36:21] <onats> if i have quite a large number of controllers, then that would mean everything is loaded up initially
[02:36:38] *** dfyock has quit IRC
[02:36:39] <onats> when user refreshes the Single page app, everything gets reloaded
[02:36:41] <robdubya_> no, you define them with a string, and angular will instantiate them when the route is triggered
[02:37:03] <onats> robdubya_: oh ok. but that means quite a large number of definitions,
[02:37:15] <onats> is this the right approach?
[02:37:16] <robdubya_> yes
[02:37:22] *** danyim has quit IRC
[02:37:28] <robdubya_> you should also look at ui-router
[02:37:32] *** secondjeff has joined #angularjs
[02:38:08] *** tzu_chi has quit IRC
[02:39:08] *** tzu_chi has joined #angularjs
[02:39:41] *** Silne30 has quit IRC
[02:39:55] *** subnl2 has joined #angularjs
[02:39:57] *** t_p has joined #angularjs
[02:40:01] *** moritzs has quit IRC
[02:40:12] <onats> ok thanks for the tips.
[02:40:42] <onats> one more thing. if i do use ui-router, then this is in replacement of routeProvider?
[02:41:00] *** jamto11 has quit IRC
[02:41:24] *** t_p has quit IRC
[02:41:28] *** matiasow has quit IRC
[02:41:35] <snapwich> can you do a wildcard in directive declarations? like .directive("h?", function(){}); to change all headers or something?
[02:41:39] *** jgladwill has quit IRC
[02:42:00] <da_wunder> snapwich: use class then
[02:42:08] *** secondjeff has quit IRC
[02:42:30] *** TorpedoSkyline has joined #angularjs
[02:42:47] *** morenoh151 has quit IRC
[02:43:11] *** marr has quit IRC
[02:43:14] <snapwich> use class?
[02:43:58] *** tschundeee has joined #angularjs
[02:43:59] <robdubya_> onats yes
[02:44:03] <da_wunder> set your directive to look at class and add that class to those h(n) elements
[02:44:26] *** slainer68 has joined #angularjs
[02:44:51] <snapwich> hrmm, i guess i could that
[02:44:54] <da_wunder> snapwich: wild cards are not supported on directives
[02:44:55] *** fedenunez has joined #angularjs
[02:45:20] <da_wunder> so basically you don't have other choice
[02:45:21] *** the-erm1 has quit IRC
[02:45:32] <da_wunder> use class or attribute for that
[02:46:18] *** the-erm has joined #angularjs
[02:46:39] *** nathggns has joined #angularjs
[02:46:45] *** Asiajey has quit IRC
[02:47:33] *** nathggns has quit IRC
[02:48:53] *** tschundeee has quit IRC
[02:49:10] *** slainer68 has quit IRC
[02:49:29] *** mindlace has quit IRC
[02:50:41] *** dcherman has joined #angularjs
[02:50:46] *** mdedetrich has joined #angularjs
[02:52:28] *** Asiajey has joined #angularjs
[02:53:11] *** phrozensilver has quit IRC
[02:53:12] *** Asiajey has quit IRC
[02:53:46] *** bahoo has quit IRC
[02:54:27] *** DrMabuse has joined #angularjs
[02:55:04] *** phrozensilver has joined #angularjs
[02:55:25] *** jamto11 has joined #angularjs
[02:56:00] *** calumet has joined #angularjs
[02:56:19] *** RubenCordeiro has quit IRC
[02:56:34] *** phrozensilver has quit IRC
[02:57:05] *** matiasow has joined #angularjs
[02:57:14] *** elux has quit IRC
[02:57:44] *** matiasow has quit IRC
[02:58:24] *** matiasow has joined #angularjs
[02:58:32] *** heidi has joined #angularjs
[02:59:14] *** DrMabuse has quit IRC
[02:59:23] *** elux has joined #angularjs
[03:00:08] *** willmarshall has joined #angularjs
[03:01:09] *** heidi has quit IRC
[03:01:30] *** Silne30 has joined #angularjs
[03:02:30] *** OdinIncarnate has joined #angularjs
[03:02:50] *** mercwithamouth has joined #angularjs
[03:03:46] *** phrozensilver has joined #angularjs
[03:04:02] *** SpearThruster has quit IRC
[03:06:18] *** nitsujw has joined #angularjs
[03:06:22] *** InezK_away is now known as InezK
[03:07:03] *** nitsujw has quit IRC
[03:07:08] *** oste has quit IRC
[03:07:17] *** fedenunez has quit IRC
[03:07:19] *** thomasvs has joined #angularjs
[03:07:50] <thomasvs> Hi. Is there a way in my html angularjs code to get a count of the number of object properties of an object I can reference?
[03:07:50] *** Grokling_ has joined #angularjs
[03:08:17] *** fold has joined #angularjs
[03:08:21] <thomasvs> the object is basically a dict of arrays, and I just want to count the number of keys and display it
[03:08:24] <robdubya_> Object.keys(), but you can't do it in the view
[03:08:27] *** danielpquinn has joined #angularjs
[03:08:32] <thomasvs> robdubya_: yeah, exactly
[03:08:42] <thomasvs> robdubya_: should I write a function in my service instead for that?
[03:08:45] <robdubya_> so just add a method to the object that does it
[03:08:51] *** nitsujw has joined #angularjs
[03:08:54] <thomasvs> ok
[03:09:10] *** thomasvs has left #angularjs
[03:09:16] *** thomasvs has joined #angularjs
[03:10:55] *** nitsujw has quit IRC
[03:12:53] *** danielpquinn has quit IRC
[03:12:56] *** TorpedoSkyline has quit IRC
[03:13:06] *** nitsujw has joined #angularjs
[03:14:49] *** jgladwill has joined #angularjs
[03:14:57] *** Limix has quit IRC
[03:16:01] *** one_zero has joined #angularjs
[03:16:20] *** prbc has quit IRC
[03:16:38] *** nitsujw has quit IRC
[03:16:55] *** codedungeon has quit IRC
[03:16:56] *** prbc has joined #angularjs
[03:17:50] *** InezK is now known as InezK_away
[03:18:20] <thomasvs> robdubya_: is there a good example of that somewhere? it seems to work if I inject my function in the scope from the controller, but not when I return my function as a method of the controller
[03:18:27] <thomasvs> I must be doing something obviously wrong, but can't figure out what
[03:18:50] <robdubya_> what are the things?
[03:18:59] *** dnyy has left #angularjs
[03:19:09] <robdubya_> i typically wrap them in an instance for each object when i fetch from $http
[03:19:42] *** morenoh151 has joined #angularjs
[03:19:43] <robdubya_> .get('foos.json').then(function(res){ return res.data.map(function(foo){ return new Foo(foo) });
[03:20:04] *** nanoyak has joined #angularjs
[03:20:15] *** davedev2_ has quit IRC
[03:20:36] *** Asiajey has joined #angularjs
[03:20:36] *** Asiajey has joined #angularjs
[03:20:37] *** davedev24_ has joined #angularjs
[03:21:07] <thomasvs> robdubya_: in the first answer, it puts firstMethod in $scope - is that $scope local to the controller, or global to the app?
[03:21:11] <BobbieBarker> in what case would you need to know the number of properties an object has?
[03:21:13] *** Silne30 has quit IRC
[03:21:21] <BobbieBarker> in what case would good code relly on such a paramater?
[03:21:24] *** prbc has quit IRC
[03:21:39] <thomasvs> BobbieBarker: my object is a dict of projects to arrays of task id's that have that project
[03:21:47] <BobbieBarker> so?
[03:21:54] <BobbieBarker> what does it matter if you have 10 or 20?
[03:22:06] <thomasvs> BobbieBarker: the ui should show how many projects there are in total
[03:22:08] <robdubya_> thomasvs it doesn't make sense to do it on the controller, if its a method operating on the object
[03:22:09] *** davedev2_ has joined #angularjs
[03:22:14] <robdubya_> BUT
[03:22:26] <robdubya_> in JS, a "collection" or "list" of things = an array
[03:22:27] <BobbieBarker> yeah so slap it in an ng-repeat
[03:22:36] <BobbieBarker> and call it a day
[03:23:04] <thomasvs> BobbieBarker: I'd prefer to have it in the controller code so I can easily optimize it later instead of counting every single time it needs displaying
[03:23:21] <BobbieBarker> optimize it>?
[03:23:25] <robdubya_> use an array
[03:23:33] <robdubya_> then you have length available with no mess
[03:23:38] <BobbieBarker> yeah
[03:23:42] <BobbieBarker> then use ng-repeat to display it
[03:23:54] <thomasvs> robdubya_: you mean you suggest I use an array of arrays instead of an object-as-dict of arrays?
[03:24:01] <BobbieBarker> yes
[03:24:04] <BobbieBarker> use an array of objects
[03:24:05] *** matiasow has quit IRC
[03:24:16] <BobbieBarker> which is actually JSON standard
[03:24:26] <thomasvs> well, then lookups by key will be slow when I need that in other places, no?
[03:24:27] *** prbc has joined #angularjs
[03:24:43] *** morenoh151 has quit IRC
[03:24:44] <BobbieBarker> so you're trying to really on a hash type data struct amirite?
[03:24:48] <robdubya_> not unless you've got a billion objects
[03:25:00] <robdubya_> and that's easy with the array.find polyfill anyway
[03:25:02] <BobbieBarker> and also what he said ^^ i was just going to lead you too it
[03:25:03] *** rtpg has joined #angularjs
[03:25:20] <thomasvs> BobbieBarker: yes. I'm bringing my python bias to javascript, so it may just be that
[03:25:25] <BobbieBarker> quit it
[03:25:27] <robdubya_> things = objects
[03:25:28] *** prbc has quit IRC
[03:25:33] <robdubya_> collections of things = array
[03:25:36] <BobbieBarker> i feel like we're tag teaming this shit rob
[03:25:39] <BobbieBarker> feels good
[03:25:42] <robdubya_> end of discussion
[03:25:44] <robdubya_> hi5
[03:25:46] *** phrozensilver has quit IRC
[03:25:50] <BobbieBarker> returns the hi5*
[03:25:53] *** davedev24_ has quit IRC
[03:26:31] <BobbieBarker> ugh you should of seen this cat that was in here like 2 days ago who was serving up pages via the server && PHP and wanted to know why angular wasn't working
[03:27:40] <BobbieBarker> i will say this for data structs, i think CS degrees to build a bias into you on data structs cuz that is one thing that they do beat into you in school.
[03:28:19] <BobbieBarker> so even though a lot of algorithms/data structs don't have a noticable difference in them when used on a small set of data, you see CS people get way more worked up about it
[03:28:24] <BobbieBarker> i know i was like that at one point
[03:29:59] <onats> robdubya_: hi again. i defined the controllers for a particular page in a js file. in stateProvider, how do i load up that js file only when that state is activated?
[03:30:26] *** simb has joined #angularjs
[03:31:51] <robdubya_> i'm actually a bit fucked for the first time, having not done CS at school. embedded C is a trial by fire :D
[03:32:08] <BobbieBarker> lol it's cuz JS is such a good language
[03:32:17] <BobbieBarker> it doesn't get in your fucking way like C langs do
[03:33:56] *** encrypt3d_fracti has joined #angularjs
[03:34:29] *** cigarshark has quit IRC
[03:34:58] *** simb has quit IRC
[03:38:22] *** phrozensilver has joined #angularjs
[03:38:25] *** tschundeee has joined #angularjs
[03:38:54] *** night-owl2 has joined #angularjs
[03:40:46] *** Yahkob has joined #angularjs
[03:40:51] *** JasonStoltz has joined #angularjs
[03:42:18] *** diffkid has joined #angularjs
[03:42:26] *** oste has joined #angularjs
[03:42:52] *** tschundeee has quit IRC
[03:43:30] *** millsb_ has quit IRC
[03:44:10] *** Left_Turn has quit IRC
[03:44:41] *** joshontheweb has joined #angularjs
[03:46:30] *** phrozensilver has quit IRC
[03:46:51] *** TyrfingMjolnir has quit IRC
[03:46:57] *** phrozensilver has joined #angularjs
[03:47:23] *** TyrfingMjolnir has joined #angularjs
[03:50:34] *** phrozensilver has quit IRC
[03:51:18] *** phrozensilver has joined #angularjs
[03:52:28] *** jobelenus has joined #angularjs
[03:54:10] *** fatshark has quit IRC
[03:54:46] *** OffTheRails has quit IRC
[03:55:27] *** DrMabuse has joined #angularjs
[03:55:55] *** frickettz has joined #angularjs
[03:57:05] *** btyne has quit IRC
[03:57:24] *** fedenunez has joined #angularjs
[03:57:56] *** bahoo has joined #angularjs
[03:59:47] *** DrMabuse has quit IRC
[04:00:35] *** colock_ has quit IRC
[04:00:53] *** whitebook has joined #angularjs
[04:01:32] *** colock_ has joined #angularjs
[04:01:46] *** dcherman has quit IRC
[04:05:34] *** knownasilya has joined #angularjs
[04:05:37] *** fostertheweb has joined #angularjs
[04:06:33] *** tplaner has quit IRC
[04:07:27] *** Hackwar1 has joined #angularjs
[04:07:36] *** maxlynch has joined #angularjs
[04:08:37] *** Hackwar has quit IRC
[04:08:47] *** InezK_away is now known as InezK
[04:09:09] *** danielpquinn has joined #angularjs
[04:12:12] *** nanoyak has quit IRC
[04:13:27] *** phrozensilver has quit IRC
[04:13:28] *** jpstone has joined #angularjs
[04:13:44] *** phrozensilver has joined #angularjs
[04:14:23] *** danielpquinn has quit IRC
[04:14:39] *** stayarrr has joined #angularjs
[04:15:55] *** JasonStoltz has quit IRC
[04:16:14] *** JasonStoltz has joined #angularjs
[04:16:47] *** hell_razer has quit IRC
[04:17:08] <BobbieBarker> robdubya are you still around broseph
[04:17:24] *** bicranial has joined #angularjs
[04:18:34] *** InezK is now known as InezK_away
[04:20:15] *** vintik has quit IRC
[04:20:59] *** ghox has quit IRC
[04:23:10] *** MTGap has joined #angularjs
[04:25:45] *** TorpedoSkyline has joined #angularjs
[04:26:11] *** encrypt3d_fracti has quit IRC
[04:29:53] *** MANCHUCK has quit IRC
[04:30:38] *** colock_ has quit IRC
[04:31:18] *** simb has joined #angularjs
[04:32:01] *** fostertheweb has quit IRC
[04:32:06] *** colock_ has joined #angularjs
[04:32:35] *** Gooder has left #angularjs
[04:33:01] *** jamesshijie has joined #angularjs
[04:33:43] *** Gooder has joined #angularjs
[04:34:51] *** danyim has joined #angularjs
[04:35:53] *** simb has quit IRC
[04:36:29] *** Stampy has joined #angularjs
[04:37:42] *** jamesshijie has quit IRC
[04:37:47] *** Grokling_ has quit IRC
[04:37:53] *** Robbo` has joined #angularjs
[04:38:57] *** Olsonfold has quit IRC
[04:38:59] *** Tidwell has quit IRC
[04:39:35] *** danyim has quit IRC
[04:41:13] *** yoshokatana has quit IRC
[04:41:54] <zumba_addict> i've removed my abuse of rootScope. It's now factory robdubya_ :)
[04:42:15] *** Hackwar has joined #angularjs
[04:44:22] *** nagappan has quit IRC
[04:44:42] *** Hackwar1 has quit IRC
[04:45:01] *** nagappan has joined #angularjs
[04:47:07] *** hell_razer has joined #angularjs
[04:47:15] *** TorpedoSkyline has quit IRC
[04:47:19] *** retornam has quit IRC
[04:47:44] *** dcherman has joined #angularjs
[04:47:47] *** angelazou has joined #angularjs
[04:48:00] *** motionman has joined #angularjs
[04:49:22] *** shinnya has quit IRC
[04:49:32] *** retornam has joined #angularjs
[04:49:33] *** hell_razer has quit IRC
[04:49:53] *** gunn has joined #angularjs
[04:49:57] *** waylon999 has quit IRC
[04:52:34] *** whitebook has quit IRC
[04:53:28] *** mettjus has quit IRC
[04:53:36] *** Yahkob has quit IRC
[04:54:51] *** shinnya has joined #angularjs
[04:55:00] *** heptal has joined #angularjs
[04:55:58] *** DrMabuse has joined #angularjs
[04:57:26] *** colock_ has quit IRC
[04:59:15] <angelazou> after some research I found that I should use $compile service
[04:59:41] <angelazou> but the template that needs compiling is only part of the view
[04:59:54] *** hell_razer has joined #angularjs
[04:59:59] *** jamesbdev has quit IRC
[05:00:00] <angelazou> how can I reattach the template after compiling?
[05:00:26] *** maxlynch has quit IRC
[05:00:29] *** simb has joined #angularjs
[05:00:34] *** DrMabuse has quit IRC
[05:01:16] *** hell_razer has joined #angularjs
[05:01:33] *** colock_ has joined #angularjs
[05:02:31] *** mcreager has quit IRC
[05:02:48] *** hell_razer has joined #angularjs
[05:05:24] *** simb has quit IRC
[05:06:58] *** stayarrr has quit IRC
[05:07:29] <angelazou> anyone?
[05:09:10] *** subnl2 has left #angularjs
[05:09:33] *** InezK_away is now known as InezK
[05:09:57] *** danielpquinn has joined #angularjs
[05:10:41] *** styles_ has quit IRC
[05:12:04] *** styles_ has joined #angularjs
[05:13:54] *** tzu_chi has quit IRC
[05:14:24] *** danielpquinn has quit IRC
[05:17:23] *** bicranial has quit IRC
[05:19:18] *** InezK is now known as InezK_away
[05:20:56] *** jamesbdev has joined #angularjs
[05:22:02] *** Silne30 has joined #angularjs
[05:23:12] *** shinnya has quit IRC
[05:23:35] *** slainer68 has joined #angularjs
[05:26:33] *** Silne30 has quit IRC
[05:27:41] *** night-owl-deskto has quit IRC
[05:28:00] *** shinnya has joined #angularjs
[05:28:34] *** slainer68 has quit IRC
[05:30:35] *** steffengy has quit IRC
[05:30:36] *** steffengy1 has joined #angularjs
[05:32:04] *** bLu_ has joined #angularjs
[05:33:23] *** hell_razer has joined #angularjs
[05:34:34] *** Yahkob has joined #angularjs
[05:34:44] *** duke_ has joined #angularjs
[05:35:49] *** jamesshijie has joined #angularjs
[05:36:03] <duke_> I am looking for articles that show backend restful api creation utilizing PHP and MySQL and consuming them through $http or $resource
[05:36:21] <duke_> anybody have any good recommendations?
[05:36:58] *** wilmoore has joined #angularjs
[05:39:09] *** geiltalasdair has quit IRC
[05:39:22] *** patrick99e99 has quit IRC
[05:39:48] <elrabin> duke_ : there plenty of resources showing how to use $http and $resource to consume a restful API
[05:40:05] <elrabin> you can also look at restangular, which does a lot of work for you
[05:40:10] *** tschundeee has joined #angularjs
[05:40:24] <elrabin> doesn't really matter what the API is implemented in, it doesn't change your angular code
[05:40:28] *** jamesshijie has quit IRC
[05:40:50] <duke_> guess the more important part is good example of creating a PHP restful api which is out of the scope of this channel i suppose
[05:41:25] *** [n0b0dy] has quit IRC
[05:41:35] *** [n0b0dy] has joined #angularjs
[05:41:38] <elrabin> yeah, i've personally never done that, nor have I ever seen a restful API implemented in PHP
[05:42:51] *** holymac has joined #angularjs
[05:42:52] *** TyrfingMjolnir has quit IRC
[05:42:54] *** MacWinner has quit IRC
[05:44:57] *** tschundeee has quit IRC
[05:47:15] *** quellhorst has joined #angularjs
[05:47:18] *** Jeff__ has quit IRC
[05:47:55] <rigel_> i have looked at all of the stackexchange answers for accessing a local json file, and i still dont understand what i'm doing wrong.
[05:48:24] <rigel_> i am not running a webserver, i am using file:/// urls, and i just want to import data from a json file
[05:48:32] *** jamto11 has quit IRC
[05:49:28] *** rburns has joined #angularjs
[05:49:28] *** quellhor_ has joined #angularjs
[05:49:58] <chovy> rigel_: file:// won't work
[05:50:03] <chovy> its cross domain
[05:50:11] <chovy> use a web server
[05:50:26] *** MTGap has quit IRC
[05:50:39] *** fedenunez has quit IRC
[05:51:03] *** jamesshijie has joined #angularjs
[05:51:16] *** jamto11 has joined #angularjs
[05:51:18] *** waylon999 has joined #angularjs
[05:51:23] *** quellhorst has quit IRC
[05:53:36] *** quellhor_ is now known as quellhorst
[05:55:32] *** jamto11 has quit IRC
[05:55:50] *** waylon999 has quit IRC
[05:56:15] *** encrypt3d_fracti has joined #angularjs
[05:56:41] *** DrMabuse has joined #angularjs
[05:57:37] *** Mouzi has joined #angularjs
[05:57:59] *** willmarshall has quit IRC
[05:59:13] *** Xethron has quit IRC
[05:59:24] *** Silne30 has joined #angularjs
[06:00:14] <robdubya_> rigel_ you can use python if you have it installed
[06:00:23] <robdubya_> python -m SimpleHTTPServer
[06:01:02] *** DrMabuse has quit IRC
[06:01:14] *** simb has joined #angularjs
[06:02:25] *** calumet has quit IRC
[06:02:28] *** morenoh151 has joined #angularjs
[06:02:47] *** joroci has quit IRC
[06:02:59] *** ascarter has joined #angularjs
[06:03:14] *** danyim has joined #angularjs
[06:03:20] *** joroci has joined #angularjs
[06:04:43] <rigel_> ok so it doesnt seem to be requesting the json
[06:05:02] *** bLu_ has quit IRC
[06:05:20] *** patrick99e99 has joined #angularjs
[06:05:20] <rigel_> though ive verified that it's accessible
[06:05:54] *** simb has quit IRC
[06:06:41] *** bphogan_afk is now known as bphogan
[06:07:18] *** morenoh151 has quit IRC
[06:08:26] *** Mouzi` has joined #angularjs
[06:09:22] *** quellhorst has quit IRC
[06:09:48] *** patrick99e99 has quit IRC
[06:09:57] *** nanoyak has joined #angularjs
[06:10:18] *** InezK_away is now known as InezK
[06:10:41] *** danielpquinn has joined #angularjs
[06:11:23] *** shinnya has quit IRC
[06:11:28] *** [n0b0dy] has quit IRC
[06:11:28] *** Mouzi has quit IRC
[06:11:38] *** [n0b0dy] has joined #angularjs
[06:12:16] *** negval has quit IRC
[06:13:12] *** phrozensilver has quit IRC
[06:14:10] *** tomzx is now known as tomzx`afk
[06:14:47] *** danielpquinn has quit IRC
[06:15:28] <thomasvs> I have two angular bootstrap button dropdowns, one sticking to the left and one to the right
[06:15:36] *** Willow has joined #angularjs
[06:15:38] <thomasvs> the one on the left looks fine; the menu opens up below, and sticks out slightly more to the right of the button
[06:16:02] *** phrozensilver has joined #angularjs
[06:16:06] <thomasvs> the one on the right however also opens the menu left-aligned to the left of the button, and as a consequence the menu items extend past the browser window and so aren't completely visible
[06:16:19] *** panda___ has joined #angularjs
[06:16:25] <thomasvs> is there a way to make the dropdown menu's right edge be right-aligned with the right edge of its button (and hence fit in the browser window) ?
[06:16:46] *** stayarrr has joined #angularjs
[06:17:16] *** jimmy__ has joined #angularjs
[06:17:36] *** mdedetrich has quit IRC
[06:18:03] *** phrozensilver has quit IRC
[06:18:04] *** panda___ has quit IRC
[06:19:34] <jimmy__> Anyone here use ui-router?
[06:20:06] *** InezK is now known as InezK_away
[06:20:08] <caitp> many people do
[06:20:19] <caitp> ask a specific question
[06:20:25] <caitp> it will get you help a lot easier
[06:20:33] <jimmy__> Thanks.
[06:20:34] *** nanoyak has quit IRC
[06:25:01] <narutimateum> where can i find more vid tutorial on angular other than egghead.io?
[06:26:05] <jimmy__> I have a question about authentication logic with a hybrid/SPA app. I'm trying to allow for deep-linking while also limiting access to states depending on if the user is logged in or not. So if the session has the user authenticated, and the authenticated user tries to access the site, i'd like to be able to transfer them to the proper state - however i'm not sure how to preserve deep-linking in that scenario - the way i
[06:26:10] *** mdedetrich has joined #angularjs
[06:27:21] <jimmy__> but with that - if the user tries to hit a deep link address, it will only transfer them to the 'base' app urls ('/' and '/dashboard') - it won't transfer to the deeply linked state - if that makes sense
[06:28:51] *** ascarter has quit IRC
[06:29:45] *** mennea has joined #angularjs
[06:30:18] *** jpstone has quit IRC
[06:31:49] *** zivester has quit IRC
[06:33:56] *** Ethix has quit IRC
[06:34:25] *** Yahkob has quit IRC
[06:34:35] *** ldgood has joined #angularjs
[06:35:54] *** patrick99e99 has joined #angularjs
[06:36:17] *** secondjeff has joined #angularjs
[06:37:10] *** willmarshall has joined #angularjs
[06:37:37] <jimmy__> so what i'd like to be able to do on runtime is to basically say "if authenticated, then goto '/dashboard:wildcardParam'. If not authenticated, then goto '/:wildcardParam'
[06:37:45] <jimmy__> "
[06:38:19] *** ascarter has joined #angularjs
[06:39:27] *** JosephSilber has quit IRC
[06:39:34] *** morenoh151 has joined #angularjs
[06:39:35] *** caitp has quit IRC
[06:39:49] <jimmy__> caitp: have any ideas?
[06:40:06] *** bphogan is now known as bphogan_afk
[06:40:23] *** patrick99e99 has quit IRC
[06:40:57] *** DuelShark has joined #angularjs
[06:40:57] *** holymac has quit IRC
[06:41:15] *** gauravsaini03 has joined #angularjs
[06:41:19] *** secondjeff has quit IRC
[06:41:25] *** Silne30 has quit IRC
[06:41:25] *** Phil__ has quit IRC
[06:42:12] *** Bardosity has joined #angularjs
[06:43:25] *** amargherio has quit IRC
[06:43:56] *** morenoh151 has quit IRC
[06:44:29] *** zumba_addict has quit IRC
[06:45:01] *** prettymuchbryce has quit IRC
[06:45:13] *** ascarter has quit IRC
[06:45:14] *** house has joined #angularjs
[06:46:17] *** ascarter has joined #angularjs
[06:46:28] *** stayarrr has quit IRC
[06:47:27] *** KamalKaur has joined #angularjs
[06:47:41] *** tarkus has joined #angularjs
[06:50:11] *** jamesshijie has quit IRC
[06:50:54] *** stayarrr has joined #angularjs
[06:51:53] *** BaconSoap has quit IRC
[06:53:00] *** encrypt3d_fracti has quit IRC
[06:53:00] *** knownasilya has quit IRC
[06:54:37] *** jobelenus has quit IRC
[06:55:24] <rigel_> ok so $http.get is actually getting my json but it's not showing up
[06:55:34] <Bardosity> Weird, protractor isn’t dealing with coffeescript specs, descpite requiring coffee-script at the start of protractor.conf.js
[06:55:49] <Bardosity> It worked in an old project… has something changed with 1.0?
[06:56:21] *** jshultz has quit IRC
[06:57:01] *** lefant has joined #angularjs
[06:57:26] *** DrMabuse has joined #angularjs
[06:58:18] *** eden_lane has joined #angularjs
[06:58:24] <jimmy__> Is there a way to do something like if($location.path() === '/dashboard{/.*}')
[06:58:28] <BobbieBarker> rigel are you resolving the promise
[06:58:40] *** blueadept has quit IRC
[06:58:42] <BobbieBarker> jimmy yes but you set it to equal the state
[06:58:43] <Bardosity> Oh, CS 1.7 breaks things
[06:58:44] <BobbieBarker> not the url
[06:59:38] <jimmy__> BobbieBarker - i'm trying to see if the url specifically contains '/dashboard' at the beginning
[07:00:28] <BobbieBarker> so do your routes use a heirarchy?
[07:01:09] <BobbieBarker> are you using ui.router?
[07:01:11] <jimmy__> I'm using UI-Router for states - yes, but i'm trying to handle restricted states
[07:01:12] <jimmy__> yes
[07:01:43] <BobbieBarker> so /dashboard should be a base state and anything beyond that should be .dashboard.otherStuff
[07:01:53] <jimmy__> Yes i'm doing that already
[07:01:59] *** simb has joined #angularjs
[07:02:02] <BobbieBarker> so why can't you just test the state for .dashboard?
[07:02:08] *** DrMabuse has quit IRC
[07:02:39] *** {DV8} has quit IRC
[07:02:45] <BobbieBarker> where are you trying to use this at?
[07:02:52] <BobbieBarker> in a controller?
[07:03:02] <jimmy__> Yeah it would help if I showed you my code, i just dont want to use that plunkr
[07:03:17] <BobbieBarker> controller or config?
[07:03:48] <jimmy__> i'm using it on runtime (.run)
[07:04:30] <BobbieBarker> hmmm well have ou considered just running location.path assign to var then treat that var like a string and do .split("/") then select the first array element?
[07:05:41] <jimmy__> That sounds good
[07:05:45] <BobbieBarker> are you trying to restrict access for like a login?
[07:06:05] *** patrick99e99 has joined #angularjs
[07:06:25] *** danyim has quit IRC
[07:06:54] <BobbieBarker> i'm trying to set it so you can use the TAB key to cycle through a table
[07:06:54] *** simb has quit IRC
[07:06:59] <BobbieBarker> and it works... cept it gets stuck
[07:07:13] *** bahoo has quit IRC
[07:07:17] <BobbieBarker> in a loop between element.prop and inputElement.prop
[07:07:25] <BobbieBarker> so it won't ever leave the focus element
[07:07:26] <jimmy__> yes, basically im trying to make it so that if a user is authenticated - and they try and access a deep link that contains '/dashboard' at the beginning of the url, i want them to be able to do that while being restricted from visiting any url that does NOT contain '/dashboard' at beginning of URL
[07:08:04] <BobbieBarker> so you don't want them to be able to hit a link that will take them outside the site?
[07:08:48] <rigel_> BobbieBarker: uh. resolving the promise?
[07:09:03] <rigel_> i'm taking snippets directly from tutorials and such
[07:09:18] <jimmy__> no i don't want them to be able to hit the welcome page ('/') or anything based on the ('/') base url , i want the base url to be ('dashboard') and not ('/')
[07:09:31] <BobbieBarker> so like $http.get().success(function(response){scope.response = response)}
[07:09:55] *** mehlah has quit IRC
[07:10:00] <BobbieBarker> so if they're authenticated then youw ant them to bypass the login page?
[07:10:19] <jimmy__> yes, becasue they're already authenticated - they dont need to see the login page
[07:10:23] <jimmy__> *because
[07:10:28] *** patrick99e99 has quit IRC
[07:10:42] <BobbieBarker> so in your route config for the auth module just test to see if they have a login token and if they do then set their state to the splash page?
[07:10:44] <BobbieBarker> no need to test URL
[07:11:10] *** InezK_away is now known as InezK
[07:11:27] *** danielpquinn has joined #angularjs
[07:11:37] <jimmy__> im not sure if you're understanding me or if i explained it correctly - thanks though
[07:11:51] <BobbieBarker> i mean set their location to the splath page
[07:11:56] *** jrexpr has joined #angularjs
[07:11:58] *** jtimon_ has quit IRC
[07:12:00] <BobbieBarker> splash*
[07:12:08] <BobbieBarker> actually no need to use route config on this
[07:12:38] <BobbieBarker> maybe i'm misunderstanding a little
[07:12:49] *** jrexpr has quit IRC
[07:12:55] <BobbieBarker> but i've done what you're trying to do and i know there is no need to test based on the URL
[07:13:29] <BobbieBarker> rigel you may want to read up on the q library, promises and async programming
[07:13:33] <BobbieBarker> and then fall in love with it
[07:13:35] <BobbieBarker> lol
[07:14:14] <BobbieBarker> anyone want to take a stab at my directive issue?
[07:14:55] *** Adarsh has joined #angularjs
[07:15:30] <rigel_> BobbieBarker: link please
[07:15:37] *** danielpquinn has quit IRC
[07:16:22] <Adarsh> I am using angular UI router. Is there any way to detect URLs without # sign . I want to detect this and redirect to specific pages. Currently any URL without # shows me a 'Server Error in '/' Application' error. How can I solve this?
[07:16:57] *** dcherman has quit IRC
[07:20:27] *** TorchDragon has joined #angularjs
[07:20:51] *** InezK is now known as InezK_away
[07:20:53] *** motionman has quit IRC
[07:20:54] *** caitp has joined #angularjs
[07:21:48] *** tigrang has joined #angularjs
[07:21:49] *** AxldenieD has joined #angularjs
[07:22:17] <BobbieBarker> rigel to what?
[07:22:39] <AxldenieD> Hello World :-)
[07:22:45] <tigrang> Is there a built-in method for directives to run their link function only when a condition is met that's passed as an attr, like <someDirective ng-init-on"a == b">
[07:23:07] <jimmy__> ng-if ?
[07:23:19] <BobbieBarker> can't use an ng-if inside a linker function
[07:23:47] *** jrexpr_ has joined #angularjs
[07:23:58] <BobbieBarker> so in the directive
[07:24:11] <BobbieBarker> you should have your scope: {}
[07:24:18] <tigrang> The issue I'm having is I'm using angular charts inside of a tab that's initially hidden and it fails to get the width/height because it's hidden. I'm trying to delay it until the tab is opened
[07:24:38] <BobbieBarker> you could watch for the change?
[07:24:54] *** TorchDragon has quit IRC
[07:25:00] <BobbieBarker> or debounce it
[07:25:57] <BobbieBarker> i know you can stop a directive by doing something like
[07:26:05] <BobbieBarker> if(!someVar) return;
[07:26:32] <BobbieBarker> not sure how it would play out in your scenario
[07:26:44] *** parth_ has joined #angularjs
[07:27:10] *** mtsr has joined #angularjs
[07:27:12] <rigel_> BobbieBarker: 05:13 < BobbieBarker> rigel you may want to read up on the q library, promises and async programming
[07:27:34] *** parth_ has quit IRC
[07:27:42] *** msarta has joined #angularjs
[07:28:23] *** jrexpr_ has quit IRC
[07:28:37] <tigrang> BobbieBarker, lol I just fixed it in the stupidest way
[07:28:53] <tigrang> tab-pane class is what hides it
[07:29:02] <tigrang> so I did this so it's initially not hidden
[07:29:03] <tigrang> <div class="fade" id="financials" ng-class="{'tab-pane' : true}">
[07:29:33] <BobbieBarker> rigel google that shit dude i don't work for you
[07:30:00] <BobbieBarker> i already gave you the answer to the test,
[07:32:19] <BobbieBarker> tigrang congratz
[07:32:21] *** bahoo has joined #angularjs
[07:32:37] <BobbieBarker> wish i could solve my own problem
[07:33:46] *** DuelShark has quit IRC
[07:34:53] <rigel_> "the answer to the test"?
[07:35:04] <tigrang> BobbieBarker, I can take a look (new to angular stuff tho)
[07:35:27] *** ome has joined #angularjs
[07:36:34] *** pyarun has joined #angularjs
[07:36:38] *** patrick99e99 has joined #angularjs
[07:36:41] <pyarun> exit
[07:36:47] *** pyarun has left #angularjs
[07:37:07] *** ckboii89 has joined #angularjs
[07:37:17] <ckboii89> hello anyone here?
[07:37:41] <jimmy__> Yes
[07:38:10] <rigel_> BobbieBarker: "and then fall in love with it" sounded like you wanted to be helpful, not a smarmy shitbag
[07:38:19] <rigel_> my mistake
[07:38:20] <ckboii89> in angular.foreach(obj, function())
[07:38:30] <ckboii89> the parameter inside the function is the iterator?
[07:39:52] *** wookiehangover has joined #angularjs
[07:40:09] *** dutis has joined #angularjs
[07:41:14] *** patrick99e99 has quit IRC
[07:41:31] *** vintik has joined #angularjs
[07:41:45] *** tschundeee has joined #angularjs
[07:43:09] <jimmy__> well, it's the 2nd paramter inside the foreach() function rather
[07:43:49] <BobbieBarker> tigrang
[07:44:26] <BobbieBarker> OMFG i think i just did it
[07:44:27] <BobbieBarker> holy shit
[07:44:29] <BobbieBarker> i rock
[07:44:41] <BobbieBarker> <-- double checks console for errors
[07:45:57] *** tigrang has quit IRC
[07:45:57] *** Reskp has joined #angularjs
[07:46:31] *** tschundeee has quit IRC
[07:47:00] *** patrick99e99 has joined #angularjs
[07:47:15] <BobbieBarker> so since there seems to be a lot of ppl new to angular in here tonight
[07:47:31] <BobbieBarker> <<-- completed directive for doing inplace edits that works with tab key
[07:47:36] <BobbieBarker> or mouse click events
[07:47:39] *** Hackwar has quit IRC
[07:48:41] <angelazou> after some research I found that I should use $compile service but the template that needs compiling is only part of the view. how can I reattach the template after compiling?
[07:49:11] <BobbieBarker> that is a weird directive
[07:49:14] <BobbieBarker> what are you trying to do?
[07:50:22] *** Adarsh has quit IRC
[07:51:36] *** DrMabuse has joined #angularjs
[07:52:02] *** waylon999 has joined #angularjs
[07:52:17] <BobbieBarker> ckboli89 obj would be your key
[07:52:48] <BobbieBarker> function(obj.value){Do stuff to value}) would be the rest of it i believe
[07:52:55] <BobbieBarker> but i usually use lodash _.forEach
[07:53:06] *** atomical has quit IRC
[07:53:12] <BobbieBarker> <<-- highly recommend you use lodash
[07:53:35] *** joshontheweb has quit IRC
[07:54:10] *** gunn has quit IRC
[07:55:07] *** mtsr has quit IRC
[07:55:58] *** DrMabuse has quit IRC
[07:56:28] *** gunn has joined #angularjs
[07:56:43] *** waylon999 has quit IRC
[07:57:40] *** danyim has joined #angularjs
[07:57:54] <ckboii89> lodash
[07:58:02] <ckboii89> like underscore js?
[07:58:41] *** zanea is now known as zanea|away
[07:59:33] *** gunn has quit IRC
[07:59:39] *** joshontheweb has joined #angularjs
[08:00:23] *** patrick99e99 has quit IRC
[08:00:29] *** dmg91 has joined #angularjs
[08:02:23] *** danyim has quit IRC
[08:02:56] *** simb has joined #angularjs
[08:03:22] *** ansu1 is now known as ansu
[08:03:55] *** tigrang has joined #angularjs
[08:04:12] *** stodan has joined #angularjs
[08:04:20] *** JakeSays has quit IRC
[08:07:07] *** jrexpr has joined #angularjs
[08:07:36] *** simb has quit IRC
[08:08:06] *** jimmy__ has quit IRC
[08:08:17] *** spazbite has joined #angularjs
[08:09:08] *** duke_ has quit IRC
[08:09:16] *** davedev2_ has quit IRC
[08:10:10] *** mtsr has joined #angularjs
[08:10:36] *** Dido has joined #angularjs
[08:10:46] *** nemothekid has quit IRC
[08:11:27] *** atomi has quit IRC
[08:11:47] *** InezK_away is now known as InezK
[08:11:59] *** caitp has quit IRC
[08:12:13] *** danielpquinn has joined #angularjs
[08:13:08] *** lite_ has joined #angularjs
[08:13:10] *** mykz_ has joined #angularjs
[08:13:54] *** Nek has joined #angularjs
[08:14:17] <Alina-malina> erm is it ok if i do 2 $http.post`s one after another?
[08:15:20] *** msarta has quit IRC
[08:15:30] <Alina-malina> 1 for main content and another for webpage attributes like title, logo link footer information, etc
[08:15:42] <Alina-malina> tags..
[08:16:47] *** danielpquinn has quit IRC
[08:19:29] *** snapwich has quit IRC
[08:19:37] *** svycka has joined #angularjs
[08:20:26] *** JakeSays has joined #angularjs
[08:21:03] *** Strues has joined #angularjs
[08:21:23] <Strues> anyone familiar with generator angular-fullstack?
[08:21:27] *** hell_razer has quit IRC
[08:21:36] *** InezK is now known as InezK_away
[08:22:05] *** screamingbanshee has joined #angularjs
[08:22:47] *** yoshokatana has joined #angularjs
[08:23:26] *** prikk has joined #angularjs
[08:23:54] *** jrexpr has quit IRC
[08:24:03] *** joshontheweb has quit IRC
[08:24:22] *** zwacky has joined #angularjs
[08:24:23] *** HypnotiX has joined #angularjs
[08:24:43] *** miga has quit IRC
[08:25:34] *** Reskp has quit IRC
[08:25:34] *** the-erm has quit IRC
[08:26:44] *** screamingbanshee has quit IRC
[08:27:14] *** b1rkh0ff has joined #angularjs
[08:27:24] *** _ht has joined #angularjs
[08:27:29] *** the-erm has joined #angularjs
[08:29:49] *** oste has quit IRC
[08:30:09] *** milka has joined #angularjs
[08:30:19] *** DuelShark has joined #angularjs
[08:31:01] *** Strues has quit IRC
[08:32:39] *** [n0b0dy] has quit IRC
[08:32:49] *** [n0b0dy] has joined #angularjs
[08:32:54] *** rtpg_ has joined #angularjs
[08:33:00] *** stayarrr has quit IRC
[08:33:08] *** wilmoore has quit IRC
[08:33:49] *** nlubisch has joined #angularjs
[08:33:50] *** stayarrr has joined #angularjs
[08:34:20] *** nemothekid has joined #angularjs
[08:34:31] *** evilaliv3 has joined #angularjs
[08:35:33] *** rtpg has quit IRC
[08:35:37] *** DuelShark has quit IRC
[08:36:13] *** Elezium_afk has quit IRC
[08:36:48] *** bahoo has left #angularjs
[08:37:52] *** secondjeff has joined #angularjs
[08:38:05] *** Gooder` has joined #angularjs
[08:38:05] *** linojon has quit IRC
[08:39:12] *** wilmoore has joined #angularjs
[08:40:03] *** Gooder has quit IRC
[08:42:12] *** Silne30 has joined #angularjs
[08:44:13] *** Gooder` has quit IRC
[08:44:19] *** secondjeff has quit IRC
[08:45:54] *** InezK_away is now known as InezK
[08:46:24] *** djam90 has joined #angularjs
[08:46:28] *** Silne30 has quit IRC
[08:47:11] *** ki0 has joined #angularjs
[08:47:21] *** epantzar has joined #angularjs
[08:47:40] *** mtsr has quit IRC
[08:50:29] *** AndyFTP has joined #angularjs
[08:50:35] *** foofoobar has joined #angularjs
[08:53:41] *** b1rkh0ff has quit IRC
[08:54:20] *** InezK is now known as InezK_away
[08:54:54] *** jae has joined #angularjs
[08:54:58] *** tarnus has quit IRC
[08:55:12] *** willmarshall has quit IRC
[08:55:25] *** Chris____ has joined #angularjs
[08:55:32] *** tarnus has joined #angularjs
[08:56:13] *** Chris____ has quit IRC
[08:57:04] *** Willow has quit IRC
[08:57:35] *** Willow has joined #angularjs
[08:59:27] *** InezK_away is now known as InezK
[09:00:01] *** charuru has quit IRC
[09:00:06] *** tarnus has quit IRC
[09:00:39] *** evilaliv3 has quit IRC
[09:00:57] *** crewshin has joined #angularjs
[09:01:12] *** joshontheweb has joined #angularjs
[09:02:13] *** Willow has quit IRC
[09:02:45] *** asdofindia has joined #angularjs
[09:03:15] *** danyim has joined #angularjs
[09:04:01] *** derwitsch has quit IRC
[09:04:10] *** texinwien has joined #angularjs
[09:05:08] *** epantzar has quit IRC
[09:06:01] *** hannesvdvreken has joined #angularjs
[09:06:35] *** sigurding has joined #angularjs
[09:07:16] *** patrick99e99 has joined #angularjs
[09:07:22] *** danyim has quit IRC
[09:07:35] *** jonasrosenlind has joined #angularjs
[09:07:51] *** InezK is now known as InezK_away
[09:08:10] *** negval has joined #angularjs
[09:08:21] *** VeeWee has joined #angularjs
[09:08:22] *** gottshall has joined #angularjs
[09:09:17] *** _tpavel has joined #angularjs
[09:10:18] *** crewshin has quit IRC
[09:11:53] *** patrick99e99 has quit IRC
[09:12:18] *** sk87 has joined #angularjs
[09:12:20] *** jae is now known as Jae
[09:12:58] *** danielpquinn has joined #angularjs
[09:13:32] *** KamalKaur has quit IRC
[09:14:30] *** agrajag42 has joined #angularjs
[09:14:38] *** Nek has quit IRC
[09:14:54] *** KamalKaur has joined #angularjs
[09:16:20] *** Willow has joined #angularjs
[09:17:24] *** danielpquinn has quit IRC
[09:17:38] *** olivererxleben has joined #angularjs
[09:17:56] *** rtpg_ has quit IRC
[09:18:02] *** opiispanen has joined #angularjs
[09:18:08] *** ascarter has quit IRC
[09:18:24] *** bengillies has joined #angularjs
[09:19:06] *** fbenoit has joined #angularjs
[09:19:46] *** dob_ has joined #angularjs
[09:21:23] *** stayarrr has quit IRC
[09:21:54] *** tigrang has quit IRC
[09:22:18] *** asdofindia has joined #angularjs
[09:22:23] *** TorchDragon has joined #angularjs
[09:22:55] *** joshontheweb has quit IRC
[09:23:31] *** vintik has quit IRC
[09:24:02] *** seydoggy has joined #angularjs
[09:24:26] *** slainer68 has joined #angularjs
[09:24:32] *** tomsteg has joined #angularjs
[09:24:43] *** thomastuts has joined #angularjs
[09:25:25] *** davesidious has joined #angularjs
[09:25:37] *** laduda has joined #angularjs
[09:25:39] *** tomsteg has left #angularjs
[09:26:05] *** sk87 has quit IRC
[09:26:10] *** laduda has quit IRC
[09:26:15] *** mtsr has joined #angularjs
[09:26:55] *** fwielstra has joined #angularjs
[09:26:56] *** panchisco has joined #angularjs
[09:26:58] *** TorchDragon has quit IRC
[09:28:17] *** mamarilmanson has joined #angularjs
[09:28:33] *** Schtive has joined #angularjs
[09:28:35] *** InezK_away is now known as InezK
[09:28:47] *** seydoggy has quit IRC
[09:29:14] <AxldenieD> Het, i've got a problem :)
[09:29:18] <AxldenieD> *hey
[09:29:32] <AxldenieD> I've got 2 Scope where the second is the child of the first
[09:29:39] *** slainer68 has quit IRC
[09:29:58] *** tomsteg has joined #angularjs
[09:29:58] <AxldenieD> in the second i try to access to a parent scope
[09:30:09] <AxldenieD> when i start à the home of the website
[09:30:13] <AxldenieD> all is ok
[09:30:17] *** zbzzn_ has quit IRC
[09:30:36] <AxldenieD> when i try a direct link to the concerned section, the same scope variable is undefined
[09:31:15] *** tomsteg has quit IRC
[09:31:34] <AxldenieD> if someone has an idea about why i can't accès this variable :)
[09:32:12] <opiispanen> it's quite hard without any actual code
[09:32:21] *** gottshall has quit IRC
[09:32:36] *** Ilyas has joined #angularjs
[09:32:36] <AxldenieD> ok
[09:32:43] <AxldenieD> i'll try to show :)
[09:33:02] *** mettjus has joined #angularjs
[09:33:18] *** olivererxleben has quit IRC
[09:33:56] *** Natsu- has joined #angularjs
[09:34:03] *** DrMabuse has joined #angularjs
[09:34:03] <AxldenieD> i'll show you the code after just look
[09:34:10] <AxldenieD> i start here
[09:34:18] <AxldenieD> the if you go to "plans"
[09:34:24] <AxldenieD> in the console
[09:34:30] <lite_> AxldenieD: Are you sure you want to "access the parent scop" ?
[09:34:36] <AxldenieD> sure
[09:34:43] <DrMabuse> index.html#/index.html ?
[09:34:56] <lite_> Im not saying you cant, but imo it has code smell
[09:34:57] *** AndyFTP has quit IRC
[09:35:07] <AxldenieD> i'll fix this later :p
[09:35:10] *** covarruvi has joined #angularjs
[09:35:16] <DrMabuse> :)
[09:35:18] *** covarruvi has quit IRC
[09:35:23] *** jamesbdev has quit IRC
[09:36:41] *** stayarrr has joined #angularjs
[09:36:43] <AxldenieD> if i start with this url
[09:36:59] <AxldenieD> tje variable is empty
[09:37:01] <AxldenieD> *the
[09:37:08] *** pankaj has joined #angularjs
[09:37:37] *** joshbrw has joined #angularjs
[09:37:44] <AxldenieD> here is the child's code
[09:37:48] <AxldenieD> very simple
[09:37:58] *** dimitroff has joined #angularjs
[09:38:36] *** guilbep has joined #angularjs
[09:38:37] <DrMabuse> so
[09:38:45] *** jonasrosenlind has quit IRC
[09:38:46] <DrMabuse> and did you load the parent ?
[09:39:08] <AxldenieD> aw
[09:39:08] <DrMabuse> cant see this part
[09:39:15] <AxldenieD> i didn't know i was supposed to do that
[09:39:23] <AxldenieD> how do i do that ?
[09:39:32] <DrMabuse> there are many ways
[09:39:42] <DrMabuse> ng-contriller="ParentCtrl"
[09:39:48] <DrMabuse> or over routing
[09:39:53] *** patrick99e99 has joined #angularjs
[09:39:58] <AxldenieD> ok !
[09:40:03] <AxldenieD> over routing should be ok :)
[09:40:09] <AxldenieD> i understand my mistake :)
[09:40:12] <AxldenieD> thanks a lot :D
[09:40:17] <DrMabuse> welcome :)
[09:40:49] *** eshlox has joined #angularjs
[09:41:03] *** intellix has joined #angularjs
[09:41:10] *** friedly has joined #angularjs
[09:41:33] *** KamalKaur has quit IRC
[09:41:37] *** maajki has joined #angularjs
[09:41:46] <maajki> hi
[09:41:54] <AxldenieD> hello
[09:42:16] *** caitp has joined #angularjs
[09:42:36] *** friedly has quit IRC
[09:42:58] *** AndyFTP has joined #angularjs
[09:43:06] *** LoveAndHappiness has joined #angularjs
[09:43:09] <maajki> Abgular docs only just "loading..". What is the problem. Downloaded by bower
[09:43:18] *** boneskull has quit IRC
[09:43:48] *** ldgood has quit IRC
[09:43:50] *** jonasliljestrand has joined #angularjs
[09:44:49] *** guilbep has quit IRC
[09:45:10] *** jeanpaul has joined #angularjs
[09:45:37] *** mettjus has quit IRC
[09:46:31] *** jdj_dk has joined #angularjs
[09:46:40] *** fbenoit has quit IRC
[09:47:19] *** efdee_ is now known as efdee
[09:47:22] *** guilbep has joined #angularjs
[09:47:23] *** caitp has quit IRC
[09:47:47] *** jonasrosenlind has joined #angularjs
[09:48:15] *** intellix_ has joined #angularjs
[09:48:16] <pankaj> any project for me on angular.js
[09:48:22] *** furgason has joined #angularjs
[09:48:30] <AxldenieD> I don't really understand what i do wrong
[09:48:41] *** furgason has quit IRC
[09:48:41] <AxldenieD> i dan access the parent name variable
[09:48:43] <AxldenieD> *can
[09:48:50] *** rtpg has joined #angularjs
[09:48:54] *** bengillies has quit IRC
[09:49:03] <AxldenieD> in the view i can see the informations
[09:49:06] *** panchisco has quit IRC
[09:49:19] <AxldenieD> but whan i try to access to the $scope.$parent.Myvar
[09:49:24] <AxldenieD> it's empty oO
[09:49:40] *** InezK is now known as InezK_away
[09:50:46] *** jamesshijie has joined #angularjs
[09:51:11] *** Bardosity has quit IRC
[09:51:24] *** waylon999 has joined #angularjs
[09:51:29] *** bicranial has joined #angularjs
[09:51:34] *** peachey has joined #angularjs
[09:51:35] *** combat1 has left #angularjs
[09:51:39] *** rik316 has joined #angularjs
[09:52:16] *** fbenoit has joined #angularjs
[09:52:50] *** rtpg has quit IRC
[09:52:57] *** rtpg has joined #angularjs
[09:52:57] *** Sky[x] has joined #angularjs
[09:53:09] *** peachey has quit IRC
[09:53:26] *** msarta has joined #angularjs
[09:53:31] *** mdedetrich has quit IRC
[09:53:33] *** intellix_ has quit IRC
[09:53:36] *** dob_ has quit IRC
[09:53:50] *** rhp has quit IRC
[09:53:53] *** RandyT has quit IRC
[09:53:56] *** intellix_ has joined #angularjs
[09:54:02] *** dob_ has joined #angularjs
[09:55:12] *** jamesshijie has quit IRC
[09:55:23] *** empinator has joined #angularjs
[09:55:28] *** waylon999 has quit IRC
[09:55:58] *** benney has joined #angularjs
[09:56:22] *** benney has quit IRC
[09:57:34] <rik316> hey
[09:57:42] *** RandyT has joined #angularjs
[09:59:10] *** berkson has joined #angularjs
[09:59:56] *** Bardosity has joined #angularjs
[10:00:35] *** orion1111 has joined #angularjs
[10:00:58] *** mven has quit IRC
[10:01:32] *** dejanr has joined #angularjs
[10:01:34] *** hannesvdvreken has quit IRC
[10:01:49] *** mven has joined #angularjs
[10:02:32] *** fbenoit_ has joined #angularjs
[10:02:34] *** intellix_ has quit IRC
[10:03:04] *** intellix_ has joined #angularjs
[10:04:47] *** Schtive has quit IRC
[10:05:09] *** JoshGlzBrk has quit IRC
[10:05:17] *** fbenoit has quit IRC
[10:05:39] *** bengillies has joined #angularjs
[10:06:16] *** berkson has quit IRC
[10:06:52] *** patrick99e99 has quit IRC
[10:08:22] *** tschundeee has joined #angularjs
[10:09:01] *** Guest94756 has quit IRC
[10:09:10] *** quatrevin has joined #angularjs
[10:09:19] *** evilaliv3 has joined #angularjs
[10:09:32] *** Cydmax has joined #angularjs
[10:09:48] *** msarta has quit IRC
[10:10:17] *** hannesvdvreken has joined #angularjs
[10:11:07] *** mennea has quit IRC
[10:11:46] *** greengriminal has joined #angularjs
[10:12:18] *** cyen_ has joined #angularjs
[10:12:19] *** maajki has quit IRC
[10:12:48] *** tschundeee has quit IRC
[10:13:44] *** danielpquinn has joined #angularjs
[10:14:14] *** eamonn has joined #angularjs
[10:14:42] *** MaxV has joined #angularjs
[10:15:39] *** eutheria has joined #angularjs
[10:15:51] *** neha_ has joined #angularjs
[10:16:08] *** zbzzn has joined #angularjs
[10:16:25] <neha_> i want to understand two way binding...can any body help me
[10:16:38] *** lite_ has quit IRC
[10:16:58] *** roolo has joined #angularjs
[10:17:34] *** lite_ has joined #angularjs
[10:17:38] *** dob_ has quit IRC
[10:17:43] *** dob_ has joined #angularjs
[10:17:59] *** danielpquinn has quit IRC
[10:18:16] *** jdj_dk has quit IRC
[10:18:29] *** asdofindia has quit IRC
[10:18:39] *** jamto11 has joined #angularjs
[10:19:30] *** asdofindia has joined #angularjs
[10:19:34] *** quatrevin has quit IRC
[10:19:50] <neha_> can any body tell me how to bind value entered in one textbox into another textbox
[10:20:12] *** jamiemcl has joined #angularjs
[10:20:25] *** Willow has quit IRC
[10:20:31] *** Christer has joined #angularjs
[10:20:31] *** Christer has joined #angularjs
[10:20:39] *** uchuff has joined #angularjs
[10:20:43] *** mr678 has joined #angularjs
[10:20:49] *** dawei has joined #angularjs
[10:20:51] *** Willow has joined #angularjs
[10:21:16] *** Foxandxss has joined #angularjs
[10:21:34] <dawei> Is there anyway of using the filter function to find and replace characters within an ng-repeat?
[10:22:22] *** wolzen has joined #angularjs
[10:22:24] *** joshontheweb has joined #angularjs
[10:22:32] *** slainer68 has joined #angularjs
[10:22:36] <neha_> :ChanServ can you tell me how to bind value entered in one textbox into another textbox
[10:22:39] *** wolzen has quit IRC
[10:22:46] *** bicranial has quit IRC
[10:22:53] *** jdj_dk has joined #angularjs
[10:23:38] *** xxtjaxx has quit IRC
[10:23:40] <eamonn> If I need something to load ideally before any routes or at least before loading any controllers, what's the correct pattern for that? I could put it in the resolve object in router.js but I would copy and paste it for each route. It's worth noting that I ideally would like to assign the result of the module loaded into a scope variable per controller
[10:23:53] <rik316> negval, ngModel and ngBind
[10:24:01] <rik316> i mean
[10:24:04] <rik316> neha_,
[10:24:25] *** hmr has joined #angularjs
[10:24:25] *** xAt is now known as xat-
[10:24:42] *** mr678 has quit IRC
[10:24:59] *** jamto11 has quit IRC
[10:25:00] *** marcusb_ has joined #angularjs
[10:25:26] *** AciD`` has joined #angularjs
[10:25:32] *** Willow has quit IRC
[10:25:33] *** MANCHUCK has joined #angularjs
[10:25:34] *** syzdek has joined #angularjs
[10:25:44] *** mdedetrich has joined #angularjs
[10:26:01] <neha_> rik316: i want to bind value entered in one text box into another textbox
[10:26:11] <rik316> i know
[10:26:23] *** hannesvdvreken has quit IRC
[10:26:31] <rik316> you have a variable in your scope, call it $scope.text
[10:26:41] <neha_> rik316: how to acheive that
[10:26:43] <thomastuts> any regex wizards here? i have what i feel like is a pretty simple pattern that i need to match but i can't seem to figure it out fully
[10:26:43] <rik316> now the text box you're entering text into
[10:26:46] *** mennea has joined #angularjs
[10:26:56] <rik316> thomastuts, i'm not wizard but ask anyway
[10:27:13] <neha_> rik316: wait i will explain my problem
[10:27:32] <rik316> neha_, <input type="text" ng-model="text"/> <input type="text" ng-bind="text"/>
[10:27:34] <thomastuts> rik316: i'm basically trying to write a regex to get all keywords and values in a string based on a gmail-like search
[10:27:38] *** Joulse has joined #angularjs
[10:27:47] <thomastuts> rik316: so you'd have foo:bar baz:kuk etc
[10:27:50] <rik316> text entered into the first will be reflected in the second
[10:27:52] <rik316> uh huh
[10:28:01] <thomastuts> that works fine, but i'd like to expand it to have quoted strings too
[10:28:06] <thomastuts> for searched with multiple words
[10:28:12] <thomastuts> i.e. foo:"here are some words"
[10:28:12] <rik316> give me an example
[10:28:15] *** eamonn has quit IRC
[10:28:15] <rik316> ah
[10:28:22] *** musser has joined #angularjs
[10:28:28] <thomastuts> the 'waaat' should not be highlighted
[10:28:40] <thomastuts> my main issue is not being able to fully catch the quoted string
[10:28:47] *** musser has quit IRC
[10:28:50] *** sinclair|work has joined #angularjs
[10:28:54] <sinclair|work> hey all
[10:29:00] *** AciD`- is now known as AciD`
[10:29:03] *** AciD` has joined #angularjs
[10:29:04] <sinclair|work> im having some trouble with ng-repeat
[10:29:05] <rik316> thomastuts, this looks like fun, give me 2 minutes
[10:29:07] <thomastuts> i think i got the rest down properly, unless you have a more elegant way of writing that regex
[10:29:14] <thomastuts> rik316: cool, thanks a bunch!
[10:29:31] <rik316> is there any particular reason that the keys have to be letters?
[10:29:41] <rik316> actually
[10:29:42] <neha_> rik316: i have one text box as <input type="text" ng-model="selectedCountries"> and another as <input type="text" ng-model="customerName" value="{{selectedCountries.id}}">
[10:29:42] <rik316> nvm
[10:29:59] <sinclair|work> not sure why, but if i have <element ng-repeat='n in whatever'>
[10:30:05] <sinclair|work> and inside my controller i have
[10:30:07] *** xxtjaxx has joined #angularjs
[10:30:12] <sinclair|work> $scope.whatever = []
[10:30:17] *** MANCHUCK has quit IRC
[10:30:24] *** ineedarobot has joined #angularjs
[10:30:33] <sinclair|work> when i try and update whatever, it doesn't automatically rebind the latest results
[10:30:35] <neha_> rik316: i did like that but not working
[10:30:36] *** mennea has quit IRC
[10:30:45] * sinclair|work could have sworn it used to do that
[10:30:50] *** Left_Turn has joined #angularjs
[10:30:52] <sinclair|work> any advice would be appreciated
[10:31:15] <thomastuts> sinclair|work: are you making sure you're letting angular know that `$scope.whatever` is updated? it sounds like your data is being updated outside of angular's realm
[10:31:27] *** hannesvdvreken has joined #angularjs
[10:31:33] <thomastuts> in which case you should use $scope.$apply()
[10:31:34] *** vallejos has joined #angularjs
[10:31:35] <sinclair|work> thomastuts: um, it should be
[10:31:41] <sinclair|work> let me paste some code
[10:31:55] *** vallejos has quit IRC
[10:32:14] <intellix_> damn... is it impossible to not re-run ng-repeats on route change? I thought if i moved my controller stuff to a directive, only the controller was re-run, but it seems the whole view is re-loopde
[10:32:25] *** arntempelgibbarn has joined #angularjs
[10:32:39] *** jdj_dk has quit IRC
[10:33:04] <intellix_> I have something like 500 items being looped through, so it should only really be done once, the routeParams should only switch a tab or so -.-
[10:33:25] <neha_> rik316: its not working
[10:33:36] *** jdj_dk has joined #angularjs
[10:33:46] *** hannesvdvreken has quit IRC
[10:33:48] *** Climax777 has joined #angularjs
[10:33:59] *** Willow has joined #angularjs
[10:34:04] *** Johnny13371337 has joined #angularjs
[10:34:06] *** Johnny13371337 has left #angularjs
[10:34:22] *** moritzs has joined #angularjs
[10:34:29] *** Willow has joined #angularjs
[10:34:37] <rik316> neha_, hmm im not sure
[10:34:46] *** logero has joined #angularjs
[10:34:46] *** patrick99e99 has joined #angularjs
[10:34:48] <rik316> could still try ng-bind instead of {{}}
[10:34:48] <Climax777> Hi
[10:35:24] *** Willow has quit IRC
[10:35:32] <Climax777> How do I configure a default state for a child ui-view
[10:35:36] *** Willow has joined #angularjs
[10:35:38] *** logero has quit IRC
[10:35:41] <thomastuts> sinclair|work: try wrapping line 9 in $scope.$apply(function() { ... } and see if it throws a digest error or not
[10:35:59] *** mykz_ has quit IRC
[10:36:20] <sinclair|work> thomastuts: what would scope apply do?
[10:36:37] *** kevster has joined #angularjs
[10:36:43] <sinclair|work> thomastuts: as far as i can tell, $scope is a valid angular scope
[10:37:14] *** therealklanni has quit IRC
[10:37:26] *** therealklanni has joined #angularjs
[10:37:47] *** mykz_ has joined #angularjs
[10:37:50] <rik316> thomastuts, ([A-Za-z\d_-]+):((".*?")|([A-Za-z\d_-]+))
[10:37:55] *** rtpg has quit IRC
[10:37:58] *** hannesvdvreken has joined #angularjs
[10:38:03] *** ki0 has quit IRC
[10:38:22] *** macugay has joined #angularjs
[10:38:23] *** boltR has quit IRC
[10:38:33] *** ki0 has joined #angularjs
[10:38:35] *** mrded has joined #angularjs
[10:38:37] *** bengillies has quit IRC
[10:38:41] *** boltR has joined #angularjs
[10:38:59] *** mrded has quit IRC
[10:39:09] *** charuru has joined #angularjs
[10:39:13] *** waylon999 has joined #angularjs
[10:39:25] *** macugay has quit IRC
[10:39:36] *** jamiemcl has quit IRC
[10:40:27] <sinclair|work> thomastuts: well, $scope.$apply works
[10:40:42] *** InezK_away is now known as InezK
[10:40:49] <sinclair|work> thomastuts: does this force angular into updating the scope?
[10:41:16] *** bengillies has joined #angularjs
[10:41:22] *** pankaj has quit IRC
[10:41:46] <thomastuts> sinclair|work: yes, you have to do that if you go outside of angular's 'realm' so to say
[10:41:54] *** jkremser has joined #angularjs
[10:42:01] <thomastuts> sinclair|work: like if you do something with jquery's ajax and update the scope variable
[10:42:11] <sinclair|work> thomastuts: ah right, that makes sense
[10:42:13] *** jkremser has quit IRC
[10:42:13] *** jkremser has joined #angularjs
[10:42:15] <thomastuts> you have to let angular know to start a new digest cycle so that your view updates
[10:42:22] *** penz has joined #angularjs
[10:42:29] <sinclair|work> thomastuts: i see
[10:42:32] <thomastuts> i don't remember the specifics so i'm sure there's someone here that can explain it a lot better than i can, but that's basically what it comes down to
[10:42:39] <sinclair|work> well, im using a raw XHR request for this
[10:42:42] *** ki0 has quit IRC
[10:42:43] *** penz has quit IRC
[10:42:52] <thomastuts> sinclair|work: yeah, if you use angular's $http instead you won't have to use $apply
[10:42:53] *** \du has joined #angularjs
[10:43:02] *** caitp has joined #angularjs
[10:43:03] <sinclair|work> gotcha, thanks :()
[10:43:05] <sinclair|work> :)
[10:43:12] *** Silne30 has joined #angularjs
[10:43:23] <thomastuts> rik316: oh wow, that's amazing
[10:43:26] <thomastuts> thanks a lot!
[10:43:41] <thomastuts> i can count the times i've used a regex on one hand i think, so most of this stuff is pretty daunting
[10:43:47] *** waylon999 has quit IRC
[10:43:54] <thomastuts> for example, i didn't even know there was an alternation character |
[10:44:04] <thomastuts> i should probably get around to finally learning regex
[10:44:15] <zbzzn> d_-
[10:44:33] *** motionman has joined #angularjs
[10:44:39] *** e-dard_afk is now known as e-dard
[10:44:43] <zbzzn> d_b
[10:44:51] *** nezuvian has joined #angularjs
[10:44:58] *** mikronaz has joined #angularjs
[10:45:16] *** Sebastien-L has joined #angularjs
[10:45:22] *** Dimlock has joined #angularjs
[10:45:34] *** banis has joined #angularjs
[10:46:10] *** banis has quit IRC
[10:46:33] *** ahuna has joined #angularjs
[10:46:38] *** marcusb_ has quit IRC
[10:47:06] *** vintik has joined #angularjs
[10:47:59] *** caitp has quit IRC
[10:48:00] *** nezuvian has quit IRC
[10:48:19] *** hannesvdvreken has quit IRC
[10:48:19] *** Silne30 has quit IRC
[10:48:26] *** ki0 has joined #angularjs
[10:48:45] *** eamonn has joined #angularjs
[10:48:46] *** thake has joined #angularjs
[10:49:01] <AxldenieD> when i call a function using $http is ther a wazy to make something like myfunction().then(function(){}) ?
[10:49:32] *** thake has quit IRC
[10:49:43] <bealtine> $http returns a promise
[10:50:10] <intellix> what part of Angular causes angular to build the views?
[10:50:23] *** hannesvdvreken has joined #angularjs
[10:50:24] *** InezK is now known as InezK_away
[10:50:27] *** kofight has joined #angularjs
[10:50:44] <lite_> intellix_: what?
[10:51:05] <intellix> like when you change your route and your view rebuilds
[10:51:12] *** msarta has joined #angularjs
[10:51:30] *** dob_ has quit IRC
[10:51:31] <intellix> or when you change a routeParam
[10:51:36] *** mettjus has joined #angularjs
[10:51:47] *** phuh has joined #angularjs
[10:52:13] *** mdedetrich has quit IRC
[10:52:22] *** barill has joined #angularjs
[10:52:45] *** mdedetrich has joined #angularjs
[10:53:54] *** guilbep has quit IRC
[10:53:56] *** dejanr has quit IRC
[10:54:02] *** Gooder has joined #angularjs
[10:54:11] *** guilbep has joined #angularjs
[10:54:18] *** stayarrr has quit IRC
[10:55:10] *** laurenzan has joined #angularjs
[10:55:16] *** KamalKaur has joined #angularjs
[10:56:05] *** tarnus has joined #angularjs
[10:56:13] *** slainer68 has quit IRC
[10:57:34] *** ededagic has joined #angularjs
[10:57:48] *** bilb_ono has quit IRC
[10:57:55] *** ededagic has quit IRC
[10:58:21] *** bilb_ono has joined #angularjs
[10:59:36] *** akoenig has quit IRC
[10:59:40] *** KamalKaur has quit IRC
[10:59:45] *** fwielstra has quit IRC
[10:59:58] *** hannesvdvreken has quit IRC
[11:00:37] *** uf6667 has joined #angularjs
[11:00:41] *** laurenzan has quit IRC
[11:00:46] *** neha_ has quit IRC
[11:00:46] *** msarta has quit IRC
[11:00:54] *** tarnus has quit IRC
[11:01:08] *** epantzar has joined #angularjs
[11:01:55] *** vintik has quit IRC
[11:02:09] *** marr has joined #angularjs
[11:02:35] *** joroci has quit IRC
[11:02:48] *** joroci has joined #angularjs
[11:03:06] *** mettjus has quit IRC
[11:03:14] *** Lnxmad has quit IRC
[11:03:20] *** zfogg has quit IRC
[11:03:28] *** SomeKittens has quit IRC
[11:03:36] *** zfogg has joined #angularjs
[11:04:00] *** Lnxmad has joined #angularjs
[11:04:03] *** ki0 has quit IRC
[11:04:06] <intellix> just so I can look into decorating it away if I need to
[11:04:30] *** ki0 has joined #angularjs
[11:04:32] *** tschundeee has joined #angularjs
[11:04:34] *** saba has joined #angularjs
[11:05:20] *** HansiHE has quit IRC
[11:06:02] *** Joshee has joined #angularjs
[11:06:13] *** saba has quit IRC
[11:06:46] *** hannesvdvreken has joined #angularjs
[11:07:25] *** msarta has joined #angularjs
[11:07:39] *** fwielstra has joined #angularjs
[11:08:17] *** rtpg has joined #angularjs
[11:08:29] <dawei> Is there anyway of using the filter function to find and replace characters within an ng-repeat?
[11:08:54] *** mal`` has quit IRC
[11:09:10] *** vierk has joined #angularjs
[11:09:13] *** gunn has joined #angularjs
[11:11:00] *** vierk has quit IRC
[11:11:44] *** morenoh151 has joined #angularjs
[11:11:50] *** pluma has joined #angularjs
[11:12:23] *** HansiHE has joined #angularjs
[11:12:42] *** rtpg has quit IRC
[11:12:45] *** DevAntoine has joined #angularjs
[11:12:46] <DevAntoine> hi
[11:12:46] <thomastuts> dawei: just use the filter on the repeating content? or maybe i'm misunderstanding your question
[11:12:49] <intellix> dawei: you can write a custom filter to do that as it runs though each item
[11:13:12] <DevAntoine> is it possible to have on field autofocus each time the form is submitted/reseted?
[11:13:34] *** lhuillier has joined #angularjs
[11:14:10] <tschundeee> DevAntoine: use javascript directly to focus your input filed after submission?
[11:14:21] *** lhuillier has quit IRC
[11:14:34] *** danielpquinn has joined #angularjs
[11:14:41] *** mal`` has joined #angularjs
[11:14:49] <DevAntoine> tschundeee: can I do that in the controller?
[11:15:17] <tschundeee> sure
[11:17:10] *** magnotta has joined #angularjs
[11:17:11] <tschundeee> document.getElementById("idname").focus()
[11:17:30] *** AlSquire has joined #angularjs
[11:18:03] <DevAntoine> tschundeee: the thing is: do not manipulate dom inside the controller
[11:18:24] <DevAntoine> tschundeee: I'm trying to find a way to get the input's reference
[11:18:33] *** jgladwill has quit IRC
[11:18:57] *** danielpquinn has quit IRC
[11:19:10] <DevAntoine> so, maybe I should send an event in my controller when the form is submitted and using ngFocus catch this event in the view?
[11:19:34] *** magnotta has quit IRC
[11:19:35] <tschundeee> hmm but you are not really manipulating the dom just focussing an element... in this case I wouldn't be so strict.
[11:20:23] *** winniwinter has joined #angularjs
[11:20:44] *** lordkryss has joined #angularjs
[11:21:13] <DevAntoine> tschundeee: well, my unit tests won't pass anymore if I'm using a selector I think
[11:21:39] <DevAntoine> I don't know what's the angular way of doing that
[11:21:49] *** guilbep has quit IRC
[11:21:52] <DevAntoine> that's killing me because for such a simple thing I'm wasting way too much time
[11:21:53] *** pluma has quit IRC
[11:22:11] *** AxldenieD has quit IRC
[11:22:22] *** bustin has joined #angularjs
[11:22:57] *** bustin has quit IRC
[11:23:11] <thomastuts> DevAntoine: you could create a directive for your form that takes an input id, and set the ID after the form has been submitted?
[11:23:27] *** AxldenieD has joined #angularjs
[11:23:39] *** TorchDragon has joined #angularjs
[11:24:00] *** meinside has joined #angularjs
[11:24:03] *** hugofirth has joined #angularjs
[11:24:45] *** mennea has joined #angularjs
[11:25:34] *** hippert has joined #angularjs
[11:26:27] *** squeakytoy has joined #angularjs
[11:26:30] *** slainer68 has joined #angularjs
[11:28:01] *** TorchDragon has quit IRC
[11:28:46] *** ollendick has joined #angularjs
[11:29:34] *** intellix has quit IRC
[11:29:46] *** intellix_ has quit IRC
[11:30:06] *** intellix has joined #angularjs
[11:31:26] <DevAntoine> thomastuts: I don't understand
[11:31:35] *** Click66 has joined #angularjs
[11:31:38] *** slainer68 has quit IRC
[11:31:49] *** naxs has joined #angularjs
[11:31:57] *** AxldenieD has quit IRC
[11:32:57] <thomastuts> DevAntoine: something like this
[11:33:29] *** agrajag42 has quit IRC
[11:34:15] *** matmuenzel has joined #angularjs
[11:35:40] <DevAntoine> thomastuts: ok, I see
[11:35:56] *** r4vi_ is now known as r4vi
[11:36:02] *** ollendick has quit IRC
[11:36:35] <DevAntoine> thomastuts: I'm going a different way, still using a directive: I'm broadcasting an event in the controller when the form is submit/reset, and the I'm attaching a directive to an input, taking in parameter the event to watch
[11:36:55] <thomastuts> DevAntoine: yep that works too
[11:38:05] *** gkap has joined #angularjs
[11:38:19] *** Hackwar has joined #angularjs
[11:38:32] *** gkap has quit IRC
[11:38:46] *** dublin has joined #angularjs
[11:38:55] *** gkap has joined #angularjs
[11:39:47] *** KamalKaur has joined #angularjs
[11:39:52] *** uf6667 has quit IRC
[11:40:22] *** Rojtjo has joined #angularjs
[11:41:20] *** InezK_away is now known as InezK
[11:41:34] *** vondra has joined #angularjs
[11:41:45] *** phuh has quit IRC
[11:41:57] *** vondra has quit IRC
[11:42:12] *** phuh has joined #angularjs
[11:43:54] *** caitp has joined #angularjs
[11:44:29] *** Ronyrun has joined #angularjs
[11:44:33] *** KamalKaur has quit IRC
[11:44:46] *** credit has joined #angularjs
[11:44:55] *** benjamingr has joined #angularjs
[11:46:20] *** credit has quit IRC
[11:47:53] *** greggsi has quit IRC
[11:48:35] *** caitp has quit IRC
[11:48:53] *** AxldenieD has joined #angularjs
[11:49:10] *** yocius has joined #angularjs
[11:49:24] *** guilbep has joined #angularjs
[11:49:27] *** yocius has quit IRC
[11:49:31] *** sptq has joined #angularjs
[11:50:21] <eden_lane> Hola, guys. How can I choose attributes that will be skipped in angular.copy ?
[11:50:21] *** sneha has joined #angularjs
[11:51:06] *** InezK is now known as InezK_away
[11:52:22] *** stingley has joined #angularjs
[11:52:30] <texinwien> eden_lane you can't
[11:52:31] *** stingley has quit IRC
[11:53:05] <eden_lane> texinwien: Thank you. Looks like I should use workaround
[11:53:16] <texinwien> copy doesn't take any parameters other than source and an optional destination
[11:53:18] <sneha> when i did like this <input type="text" ng-model="selectedCountries.id" value="{{somebinding}}" > ng-model is not workig
[11:53:29] <sneha> any any body tell me why
[11:53:31] *** b1rkh0ff has joined #angularjs
[11:54:11] <eden_lane> I will delete a.attribute and then will add again after angular.copy
[11:54:16] *** wilmoore has quit IRC
[11:54:28] <texinwien> I think I'd prefer to delete the attribute from the copy
[11:54:28] *** avree has joined #angularjs
[11:54:53] <texinwien> so, copy the whole thing, then get rid of what you don't need on the copy
[11:55:04] <texinwien> your call, of course
[11:55:05] <eden_lane> I can't. Copy throws an exception with this attribute
[11:55:10] *** krull has joined #angularjs
[11:55:26] <texinwien> what is the attribute's type / what is the exception?
[11:56:04] <eden_lane> Attributes type is CodeMirror.Doc and looks like it has a reference to window, which copy don't allow
[11:56:23] *** msarta has quit IRC
[11:56:38] <eden_lane> "Can't copy! Making copies of Window or Scope instances is not supported." - that is the exception
[11:56:41] *** KamalKaur has joined #angularjs
[11:57:04] <texinwien> Sounds like a reasonable limitation
[11:57:09] <thomastuts> eden_lane: you can use lodash for doing that instead
[11:57:18] <thomastuts> eden_lane: _.omit(object, 'keyToRemove')
[11:57:48] <eden_lane> hm, nice solution, thanks !
[11:57:58] *** knieriem has joined #angularjs
[11:58:16] <thomastuts> eden_lane: it also takes an array of strings (or a callback function instead) so you can remove several props at once
[11:58:16] *** eutheria has left #angularjs
[11:58:18] *** knieriem has quit IRC
[11:58:25] <sneha> <input type="text" ng-model="selectedCountries.id" value="{{somebinding}}" > the binding of other ng-model that is somebinding is not working
[11:58:33] *** one_zero has quit IRC
[11:58:43] <sptq> Hi
[11:58:50] <sneha> can any one know this problem...m new to angularjs
[11:59:14] *** mykz_ has quit IRC
[11:59:14] <sneha> please help me some one
[11:59:22] *** evilaliv3 has quit IRC
[11:59:26] *** hugofirth has quit IRC
[12:00:57] *** KamalKaur has quit IRC
[12:01:01] <DrMabuse> hey guys anyon can tell me wwhat i am doing wron on my broadcast ?
[12:01:10] *** marchese has joined #angularjs
[12:01:17] <eden_lane> thomastuts: I don't want to use the whole library for the only one function, but I definitly should look at this
[12:01:40] <eamonn> eamonn
[12:01:49] <sptq> sneha: try add somebinding as property in new object, like: $scope.bindingObject = { somebinding: ''}; then in view: {{bindingObject.somebinding}}
[12:01:49] <eamonn> oops :)
[12:02:47] *** mini-me has joined #angularjs
[12:03:14] <sneha> sptq: thanks let me try
[12:03:58] *** keele has joined #angularjs
[12:04:29] *** joroci has quit IRC
[12:04:32] *** DevAntoine has quit IRC
[12:04:57] <DrMabuse> hmm
[12:05:06] *** joroci has joined #angularjs
[12:05:24] <DrMabuse> i cant broadcast wehn the controller is inside a directive
[12:05:37] *** hugofirth has joined #angularjs
[12:06:33] *** hugofirth has quit IRC
[12:06:33] *** Sky[x] has quit IRC
[12:06:46] *** relihan has joined #angularjs
[12:06:55] *** relihan has quit IRC
[12:06:57] <sneha> sptq: no its not working
[12:08:12] *** evilaliv3 has joined #angularjs
[12:08:30] <sneha> sptq: ok wait
[12:08:32] *** Sky[x] has joined #angularjs
[12:09:02] *** vader has joined #angularjs
[12:09:34] *** pesce has joined #angularjs
[12:09:49] *** pesce has quit IRC
[12:10:08] *** vintik has joined #angularjs
[12:10:24] *** hugofirth has joined #angularjs
[12:10:29] *** rshsah has joined #angularjs
[12:11:26] *** rshsah has quit IRC
[12:11:34] *** dob_ has joined #angularjs
[12:11:38] <r4vi> r
[12:12:22] *** lograsso has joined #angularjs
[12:12:24] *** rollbrettler has joined #angularjs
[12:12:26] *** Patrick_Baitman has joined #angularjs
[12:12:50] *** synestry has joined #angularjs
[12:13:24] *** Joulse has quit IRC
[12:13:28] *** Arn has joined #angularjs
[12:13:35] <Arn> hi
[12:13:40] <Patrick_Baitman> hi
[12:14:10] *** bejames has joined #angularjs
[12:14:49] <Arn> can i use Angular JS instead of jQuery?
[12:15:20] <Arn> i mean for all types of work
[12:15:21] *** prbc has joined #angularjs
[12:15:21] *** danielpquinn has joined #angularjs
[12:15:21] <sneha> sptq: {{somebinding }} is changing dynamically i.e coming from ajax request
[12:15:22] <thomastuts> eden_lane: sure, i get where you're coming from, but if you take a look at what lodash offers i'm positive that you can replace some of your own code with their functions instead
[12:15:48] <thomastuts> eden_lane: lodash offers a *ton* of handy things, it's like the utility belt that js doesn't have
[12:15:48] *** lograsso has quit IRC
[12:15:59] <sptq> sneha: brb
[12:17:15] <Arn> ok
[12:17:15] *** elrabin_ has joined #angularjs
[12:17:16] <Arn> ( *❛‿❛)
[12:17:18] <opiispanen> Arn, AngularJS was not invented to replace jQuery
[12:17:36] *** lahwran has quit IRC
[12:17:50] *** mfunkie has joined #angularjs
[12:17:54] *** OnkelTem has joined #angularjs
[12:17:59] <OnkelTem> Hi all
[12:18:23] *** kulish has joined #angularjs
[12:18:31] *** elrabin has quit IRC
[12:19:01] <OnkelTem> How to scroll to top after state transition? For some reason, if a state is activated from page-A when it is scrolled down, new loaded view has that scroll offset either
[12:19:01] *** kulish has quit IRC
[12:19:05] *** roolo has quit IRC
[12:19:29] *** danielpquinn has quit IRC
[12:19:59] *** daslicht has joined #angularjs
[12:20:40] *** lahwran has joined #angularjs
[12:21:32] *** Arn has quit IRC
[12:21:58] *** hennes has joined #angularjs
[12:22:01] *** rollbrettler has quit IRC
[12:22:03] *** evilaliv3 has quit IRC
[12:23:03] *** hugofirth has quit IRC
[12:23:19] *** hugofirth has joined #angularjs
[12:23:51] *** slainer68 has joined #angularjs
[12:24:25] *** hennes has quit IRC
[12:24:30] <sneha> sptq: r u there?
[12:25:09] *** TorchDragon has joined #angularjs
[12:25:12] <thomastuts> sneha: what ajax request exactly? are you using angular's $http to make the ajax request or are you using something else?
[12:25:14] *** vintik has quit IRC
[12:25:23] <DrMabuse> $request
[12:26:34] *** intellix has quit IRC
[12:27:10] *** erichson has joined #angularjs
[12:27:33] *** jonasrosenlind has quit IRC
[12:27:43] <thomastuts> sneha: where's your JS code?
[12:27:44] *** erichson has quit IRC
[12:28:09] *** epantzar has quit IRC
[12:28:29] <sneha> thomastuts: its a rough plunker
[12:29:09] <thomastuts> well yeah but if you leave out the JS people won't be able to help you properly :)
[12:29:22] *** TorchDragon has quit IRC
[12:30:07] *** fwielstra has quit IRC
[12:30:13] <thomastuts> dawei: does myApp exist already, or are you creating a new module?
[12:30:16] *** b1rkh0ff has quit IRC
[12:30:21] *** Aartsie has joined #angularjs
[12:30:23] <thomastuts> if you pass in the second argument to angular.module it will create a new module
[12:30:23] *** fernstaed has joined #angularjs
[12:30:52] <dawei> thomatuts: Creating a new module
[12:32:54] <dawei> thomastuts: The ng-repeat that im using it for has it's values stores in a different module, could this be causing the problem?
[12:33:10] *** masri has joined #angularjs
[12:33:14] <thomastuts> no, the values are passed into the filter
[12:33:15] *** masri has quit IRC
[12:33:17] <thomastuts> doesn't matter where they come from
[12:33:24] <dawei> strange
[12:33:29] <thomastuts> i think your issue's somewhere else
[12:33:32] <thomastuts> i can run that code just fine
[12:33:53] *** mennea has quit IRC
[12:34:17] *** mennea has joined #angularjs
[12:35:39] *** msarta has joined #angularjs
[12:35:59] *** heinl has joined #angularjs
[12:36:44] <thomastuts> dawei: ok, are you sure you've added the file to your HTML page?
[12:36:45] *** heinl has quit IRC
[12:37:24] <thomastuts> oh wait
[12:37:26] <thomastuts> you have a typo
[12:37:29] <thomastuts> it says 'plustoSpace'
[12:37:32] *** DrMabuse has quit IRC
[12:37:34] <thomastuts> shouldn't it be 'plusToSpace'?
[12:37:45] *** e-dard has left #angularjs
[12:37:56] <thomastuts> nope nvm
[12:38:01] *** Joshee has quit IRC
[12:38:21]
<dawei> http://pastebin.com/WjWKiWJN is how its currently used in my html code. Hmm as far as i can see both plustoSpace's are the same
[12:39:04] *** wdom has quit IRC
[12:39:19] *** gkap has quit IRC
[12:39:21] <thomastuts> yeah that looks fine
[12:39:27] <sneha> thomastuts: can u just tell me how to bind one model to another model and vice versa
[12:39:35] *** mosakowsk has joined #angularjs
[12:39:52] *** OdinIncarnate has quit IRC
[12:40:02] <dawei> thomastuts: it's so strange. Can't figure out what i'm doing wrong here at all ;(
[12:40:02] *** mosakowsk has quit IRC
[12:40:07] <opiispanen> how are you injecting the filter into your module
[12:40:11] <thomastuts> sneha: i'm sorry, i don't know what you mean
[12:40:17] <thomastuts> sneha: why can't you just use the same model?
[12:40:24] <opiispanen> dawei, that was for you
[12:40:33] *** prbc has quit IRC
[12:40:36] <dawei> I don't understand what you mean sorry
[12:40:46] *** mykz_ has joined #angularjs
[12:41:12] *** prbc has joined #angularjs
[12:41:14] <sneha> thomastuts: ok tell me one more thing if u dnt mind
[12:41:26] <dawei> you mean the case in which its being used or? . I'm a little bit confused by your question, new to using angular :)
[12:41:26] <sneha> thomastuts: can i ask?
[12:41:42] <thomastuts> sneha: don't ask to ask, just ask your question :)
[12:41:43] *** hannesvdvreken has quit IRC
[12:41:47] *** phuh has quit IRC
[12:41:53] *** jonasliljestrand has quit IRC
[12:42:03] *** InezK_away is now known as InezK
[12:42:11] *** secondjeff has joined #angularjs
[12:42:14] *** phuh has joined #angularjs
[12:42:14] <thomastuts> opiispanen: i think he only has one module
[12:42:43] <opiispanen> ok, so this is all you have, right?
[12:42:47] *** sponholz has joined #angularjs
[12:43:08] *** wdom has joined #angularjs
[12:43:27] <dawei> opiispanen: I have a second module above that is used for the controller to get my RecentlyViewedList but aside from that it's all I have.
[12:43:30] <sneha> thomastuts: in angularjs can we post a form using name attribute of form elments?
[12:44:01] *** Aartsie has quit IRC
[12:44:27] <opiispanen> dawei, so you have two modules, the other containing the controller and the other has the filter
[12:44:36] *** caitp has joined #angularjs
[12:44:52] <dawei> opiispanen: Yup, thats right
[12:45:04] *** joshontheweb has quit IRC
[12:45:28] <opiispanen> angular.module('yourcontrollermodule',['yourfiltermodule'] <- are you doing this?;
[12:45:35] *** zitzloff has joined #angularjs
[12:45:36] *** prbc has quit IRC
[12:45:45] *** mfunkie has quit IRC
[12:45:47] *** zitzloff has quit IRC
[12:45:52] *** Click66 has quit IRC
[12:45:57] <opiispanen> in the html you should only have ng-app="yourcontrollermodule"
[12:46:29] *** secondjeff has quit IRC
[12:47:02] <sneha> thomastuts: can we post form without use of ng-model in input elements
[12:47:06] <dawei> No i'm not doing that at the minute, does that allow for one module to be included into the other? . Currently in the html I have two ng-apps. One at the beginning for controller and then another at the div for the filter
[12:47:11] *** Aartsie has joined #angularjs
[12:47:20] *** kevster has quit IRC
[12:47:30] <opiispanen> two ng-apps is the problem
[12:47:37] *** Aartsie_ has joined #angularjs
[12:48:10] *** Aartsie has quit IRC
[12:48:22] *** platter has joined #angularjs
[12:48:27] <opiispanen> you inject the other modules inside one module, only one module should control the page/app
[12:48:41] <thomastuts> dawei: you should only have one angular app
[12:48:47] <dawei> Ohh really? Well thats good that know what the problem is now :) . So how do I include do I inject my filter module inside the other module?
[12:48:53] <thomastuts> and don't split every controller/filter/... into a separate module
[12:49:05] <thomastuts> group them by functionality
[12:49:47] *** caitp has quit IRC
[12:49:51] <opiispanen> angular.module('theAppModule',['filterModule','serviceModule']).controller('theAppCtrl',func....);
[12:50:56] *** hannesvdvreken has joined #angularjs
[12:51:06] *** fixl has joined #angularjs
[12:51:11] *** frieze has joined #angularjs
[12:51:45] *** fwielstra has joined #angularjs
[12:51:50] <dawei> thomastuts, opiispanen: Thanks so much you guys, it's working just fine now. :D
[12:51:51] *** frieze has quit IRC
[12:51:58] *** InezK is now known as InezK_away
[12:52:24] <thomastuts> dawei: if you have any questions about architecture with modules etc, i'd be happy to help
[12:54:33] *** b1rkh0ff has joined #angularjs
[12:54:47] *** terrasas has joined #angularjs
[12:55:30] *** mini-me has quit IRC
[12:56:15] <opiispanen> thanks to angular, I have time to solve other peoples problems while working..! :D
[12:56:19] *** jonasrosenlind has joined #angularjs
[12:57:06] *** tarnus has joined #angularjs
[12:59:53] *** terrasas has quit IRC
[13:01:28] *** tarnus has quit IRC
[13:01:28] *** b1rkh0ff has quit IRC
[13:01:46] *** dob_ has quit IRC
[13:02:13] *** dob_ has joined #angularjs
[13:02:17] *** Ronyrun has quit IRC
[13:02:47] *** baskins has joined #angularjs
[13:03:07] *** mdedetrich has quit IRC
[13:03:16] *** angelazou has quit IRC
[13:03:31] *** baskins has quit IRC
[13:06:05] *** Hounddog has joined #angularjs
[13:06:23] *** mcewen has joined #angularjs
[13:07:04] *** dob_ has quit IRC
[13:07:15] *** roolo has joined #angularjs
[13:08:38] *** IJNX has joined #angularjs
[13:09:58] *** mcewen has quit IRC
[13:10:23] *** sneha has quit IRC
[13:11:50] *** sobha has joined #angularjs
[13:12:19] <sobha> hiiii is there any angularjs expert..i need little help
[13:12:47] *** heptinsta has joined #angularjs
[13:13:12] <sobha> is it possible to post a form with form name and without use of ng-model of input elements??
[13:13:13] *** heptinsta has quit IRC
[13:14:04] *** yogurt_truck has joined #angularjs
[13:14:20] *** evilaliv3 has joined #angularjs
[13:14:40] *** Willow has quit IRC
[13:15:20] *** JohnBat26 has joined #angularjs
[13:15:36] *** bengillies has quit IRC
[13:15:59] *** bega has joined #angularjs
[13:16:02] *** danielpquinn has joined #angularjs
[13:16:33] *** epantzar has joined #angularjs
[13:16:52] *** mettjus has joined #angularjs
[13:17:18] *** TorpedoSkyline has joined #angularjs
[13:17:33] *** mamarilmanson has quit IRC
[13:19:22] *** prbc has joined #angularjs
[13:20:09] *** TorpedoSkyline has quit IRC
[13:20:09] <orion1111> Has anyone got also this strange behavioiur: Despite I clear template cache, sometimes html file included with ng-include appears cached - as it was long time before?
[13:20:10] *** bega has quit IRC
[13:20:19] *** joshontheweb has joined #angularjs
[13:20:22] *** tschundeee has quit IRC
[13:20:51] *** danielpquinn has quit IRC
[13:21:34] *** prbc has quit IRC
[13:21:38] <orion1111> It seems like cache disfunction
[13:21:59] *** hswolff has quit IRC
[13:22:24] <bd> in chrome, at least, xhr requests for html get cached and doesn't get cleared with force refresh
[13:22:46] *** sucre has joined #angularjs
[13:23:04] <orion1111> for example, I change file to be included with ng-include and then cached version appears
[13:23:04] *** sucre has quit IRC
[13:23:06] *** sobha has quit IRC
[13:23:09] <orion1111> I use FF
[13:23:31] *** johnnyhendricks has joined #angularjs
[13:23:31] <bd> you change the actual filename? or the contents of file?
[13:24:01] <orion1111> I have two different .html files
[13:24:06] *** Ethix has joined #angularjs
[13:24:25] *** hswolff has joined #angularjs
[13:24:34] *** Joshee has joined #angularjs
[13:24:34] *** spaceonline has joined #angularjs
[13:25:13] *** whitebook has joined #angularjs
[13:25:14] *** wiherek has joined #angularjs
[13:25:16] <wiherek> hi
[13:25:22] <eden_lane> thomastuts: thank you for your help and advices
[13:25:38] <wiherek> i am getting this: WARNING: Tried to load angular more than once.
[13:25:46] *** TorchDragon has joined #angularjs
[13:25:54] <wiherek> it only happens in my dist build..
[13:25:58] *** hassler has joined #angularjs
[13:26:08] <wiherek> any directions for what to look for?
[13:26:09] *** hassler has quit IRC
[13:26:30] <orion1111> bd: Is there a way to force cache clear?
[13:26:40] *** Sebastien-L has quit IRC
[13:26:55] <bd> add random number to query string, or maybe setting http headers
[13:27:09] <bd> i don't know how ff deals with it
[13:27:11] *** johnnyhendricks has quit IRC
[13:27:20] *** TorpedoSkyline has joined #angularjs
[13:27:23] <bd> chrome was really annoying to it to not cache angular template loads
[13:27:50] *** intellix has joined #angularjs
[13:27:53] *** bengillies has joined #angularjs
[13:28:46] *** bardon has joined #angularjs
[13:29:26] *** bardon has quit IRC
[13:29:59] *** TorchDragon has quit IRC
[13:30:52] <orion1111> I noticed if I clear browser cache it works, but after another change to included template, no
[13:31:22] *** evilaliv3 has quit IRC
[13:31:27] <bd> chrome has an option to disable cache when devtools is open, i use that, not sure if ff has an equivilent
[13:32:11] *** Click66 has joined #angularjs
[13:32:22] *** kreimer has joined #angularjs
[13:33:08] *** kreimer has quit IRC
[13:33:45] *** slainer68 has quit IRC
[13:34:09] *** FunnyLookinHat has joined #angularjs
[13:34:27] <Hounddog> Hmmm. I am just thinking on how to route custom domains. I am thinking of checking every domain against the original domain and if not then request the data for the custom domain.
[13:34:37] *** eamonn has quit IRC
[13:34:59] <bd> what do you mean, Hounddog ?
[13:35:01] *** DrMabuse has joined #angularjs
[13:35:38] <Hounddog> bd: i have original domain e.g foo.bar and people can use this like foo.bar/mysite
[13:35:55] <Hounddog> bd: within an admin panel though they can also give mycustomdomain
[13:35:58] *** greytak has joined #angularjs
[13:36:10] *** greytak has quit IRC
[13:36:24] <bd> angular won't really care about the domain by default, unless you've hardcoded domain names in
[13:36:45] <bd> or are you talking about different parts of the app lying on different domains?
[13:36:52] <Hounddog> bd: so on the server i am redirecting every domain to the index.html of angular but now in angular i need to figure where to send them.
[13:36:54] <Hounddog> bd: yes
[13:36:57] *** gkap has joined #angularjs
[13:37:20] <Hounddog> bd: foobar.co/mysite is the same as mycustomdomain.com
[13:37:27] <Hounddog> i am using ui.router for this
[13:37:36] <bd> right, but will the users of the site be transitioning between the two domains?
[13:37:46] <bd> or will their entry point by one or the other, then they stay on same domain
[13:38:16] <Hounddog> this i currently use
[13:38:23] *** joshontheweb has quit IRC
[13:38:29] <Hounddog> bd: i can give you a working example... for you to understand
[13:38:39] *** caitp has joined #angularjs
[13:38:47] *** stratakos has joined #angularjs
[13:38:54] <bd> i don't think pushstate will work across domains, anyways
[13:38:55] *** stratakos has quit IRC
[13:38:57] *** matmuenzel has quit IRC
[13:39:01] <bd> so it'll reload the app whenever domain changes
[13:39:14] <Hounddog> oh well that is not the case
[13:39:19] <Hounddog> it will be either one or the other
[13:39:36] <Hounddog> i am just trying to now put this in database so it is configurable
[13:39:38] <bd> but they should both have the same content?
[13:39:43] <Hounddog> yes
[13:39:53] <bd> why do anything with domains at all then?
[13:40:00] <Hounddog> bd look at those links you see what i mean
[13:40:08] <Hounddog> bd: cause people want to use their own domain
[13:40:22] *** bengillies has quit IRC
[13:40:25] <bd> right, but angular doesn't care about the domain
[13:40:34] *** TorpedoSkyline has quit IRC
[13:40:40] <bd> so just have everything relative pathed
[13:40:59] <epantzar> Does anyone have a basic angularApp with a working Cache thing? Trying to implement cacheing to my app, but really don't get how to implement it.. :D
[13:41:02] <Hounddog> bd: i know but i am just trying to figure out how to do the routing simple
[13:41:35] *** vandever has joined #angularjs
[13:41:49] <bd> ok, so your problem is with paths, not domains?
[13:41:49] *** phuh has quit IRC
[13:42:12] <bd> like the path is / on one and /fritzkola/keinfestivalohnefritz on the other?
[13:42:14] *** bengillies has joined #angularjs
[13:42:15] *** phuh has joined #angularjs
[13:42:32] <Hounddog> bd: not the path i need to check on the host
[13:42:38] *** mguillech has joined #angularjs
[13:42:45] *** whitebook has quit IRC
[13:42:48] *** InezK_away is now known as InezK
[13:42:49] *** jonasliljestrand has joined #angularjs
[13:42:59] <bd> i don't understand why
[13:43:03] *** Efrem has joined #angularjs
[13:43:05] *** seydoggy has joined #angularjs
[13:43:11] *** caitp has quit IRC
[13:43:18] *** JasonStoltz has quit IRC
[13:43:18] *** tschundeee has joined #angularjs
[13:43:19] <Hounddog> bd: huh?
[13:43:38] <Hounddog> if i only check against / or fritzkola/keinfestivalohnefritz how will that help?
[13:43:54] <Hounddog> bd: fritzkola/keinfestivalohnefritz is dynamic also
[13:44:22] *** partis has joined #angularjs
[13:44:42] <Hounddog> bd: and clingr.de is a complete different entry page
[13:45:14] <Hounddog> bd: i dont know how i would now check against only / and fritzkola/keinfestivalohnefritz without hardcoding it. Maybee you could explain
[13:46:15] *** thomastuts has quit IRC
[13:46:17] *** b1rkh0ff has joined #angularjs
[13:47:08] *** empinator has quit IRC
[13:47:15] *** TorpedoSkyline has joined #angularjs
[13:47:34] *** haufler has joined #angularjs
[13:47:40] *** haufler has quit IRC
[13:48:57] *** naxs has quit IRC
[13:49:24] *** lsiv568 has joined #angularjs
[13:50:08] *** ineedarobot has quit IRC
[13:50:17] *** bejames has quit IRC
[13:50:22] *** espenoza has joined #angularjs
[13:51:54] *** mennea has quit IRC
[13:52:06] *** akrikos has joined #angularjs
[13:52:11] *** TorpedoSkyline has quit IRC
[13:52:42] *** InezK is now known as InezK_away
[13:52:46] *** jayturn has joined #angularjs
[13:53:10] *** pelley has joined #angularjs
[13:53:16] *** IJNX has quit IRC
[13:53:44] *** pelley has quit IRC
[13:53:45] *** danizord has joined #angularjs
[13:54:24] <jayturn> Hi everyone, was wondering if I could please ask some help on getting a directive passing data from a factory to a controller it isn't connected to?
[13:54:44] *** Ethix has quit IRC
[13:55:04] *** milka has quit IRC
[13:55:45] *** mennea has joined #angularjs
[13:56:13] <jayturn> If I have a directive which has a click event to pull data from a factory, how can I then pass that scope data to another controller that it isn't within the scope of? It the only option to use $rootscope?
[13:56:22] *** garriss has joined #angularjs
[13:56:28] *** garriss has quit IRC
[13:56:58] <orion1111> <div ng-include src="'partials/delni.html?q=' + Math.random().toString()"></div>
[13:57:05] <orion1111> Is there more elegant way to do this?
[13:57:28] *** naxs has joined #angularjs
[13:57:41] *** patrick99e99 has quit IRC
[13:58:10] *** hugofirth has quit IRC
[13:58:17] <orion1111> I tried to put inside src tag: '{{ get_delni_page() }}', and defined function in controller's scope, but it doesn't work
[13:58:33] <bd> orion1111: http interceptor
[13:59:10] *** laubershe has joined #angularjs
[14:00:01] *** prbc has joined #angularjs
[14:00:44] *** tarnus has joined #angularjs
[14:01:08] *** swirlycheetah has joined #angularjs
[14:01:29] *** wiherek has quit IRC
[14:01:31] <swirlycheetah> I need to crowdsource a variable name =)
[14:01:31] *** laubershe has quit IRC
[14:02:29] <swirlycheetah> the date within a two week window, back 1 week and forward 1 week from today, which is considered live
[14:02:29] *** Sgeo has quit IRC
[14:02:44] <swirlycheetah> currently i've got liveTimeframe
[14:03:11] *** Sky[x] has quit IRC
[14:03:34] *** seydoggy has quit IRC
[14:04:03] *** mykz_ has quit IRC
[14:04:06] *** seydoggy has joined #angularjs
[14:04:09] *** slainer68 has joined #angularjs
[14:04:22] *** DrMabuse has quit IRC
[14:04:22] *** wanser has joined #angularjs
[14:04:59] *** DrMabuse_ has joined #angularjs
[14:05:06] *** eamonn has joined #angularjs
[14:05:13] *** bmac has joined #angularjs
[14:05:25] *** ineedarobot has joined #angularjs
[14:05:37] *** DrMabuse_ has quit IRC
[14:05:43] *** Sebastien-L has joined #angularjs
[14:05:58] *** moritzs has quit IRC
[14:05:58] *** mykz_ has joined #angularjs
[14:06:15] *** DrMabuse has joined #angularjs
[14:06:58] *** wanser has quit IRC
[14:07:23] *** ioncache has quit IRC
[14:08:16] <orion1111> bd: Is there a reason why I haven't had problems with cached individual routed pages (yes, I use $templateCache.removeAll()) ?
[14:08:45] *** ccohn has joined #angularjs
[14:08:50] *** bejames has joined #angularjs
[14:08:52] *** DevAntoine has joined #angularjs
[14:08:56] *** dob_ has joined #angularjs
[14:08:57] *** slainer68 has quit IRC
[14:09:01] <orion1111> For now I noticed cached pages just for ng-include ones (again, I tried $templateCache.removeAll)
[14:09:06] *** seydoggy has quit IRC
[14:09:34] *** jefferson has joined #angularjs
[14:09:42] *** Peasley has quit IRC
[14:09:46] *** jefferson has quit IRC
[14:09:47] *** morenoh151 has quit IRC
[14:10:06] *** Peasley has joined #angularjs
[14:10:54] *** joshontheweb has joined #angularjs
[14:12:22] *** vallimont has joined #angularjs
[14:12:41] *** AlbinoTux has quit IRC
[14:13:09] *** eamonn_ has joined #angularjs
[14:14:10] *** eamonn has quit IRC
[14:14:54] *** atomical has joined #angularjs
[14:15:08] *** JasonStoltz has joined #angularjs
[14:15:13] *** wiherek has joined #angularjs
[14:15:15] *** marcospgp has joined #angularjs
[14:15:21] <marcospgp> I have this: <div ng-include="views/menu/authentication.html" ng-show="view.name === 'authentication'"></div>
[14:15:33] <marcospgp> $scope.view.name is 'authentication'
[14:15:34] *** monico has joined #angularjs
[14:15:38] <marcospgp> all i get in html is:
[14:15:48] <marcospgp> <!-- ngInclude: views/menu/authentication.html -->
[14:15:48] *** monico has quit IRC
[14:16:04] *** pskrz has quit IRC
[14:16:04] *** dawei has quit IRC
[14:16:05] <marcospgp> what am I doing wrong?
[14:16:25] <gauravsaini03> Hello
[14:16:46] <gauravsaini03> I am having a issue in my directive can anyone pls look into this plnkr
[14:16:49] *** danielpquinn has joined #angularjs
[14:16:55] <bealtine> you need to quote the include
[14:17:27] <marcospgp> quote?
[14:17:36] <gauravsaini03> the decimal place of the currency not working correctly
[14:17:46] <bealtine> ng-include="'whatever.html'"
[14:17:48] <opiispanen> ng-include="'views/menu/authentication.html'"
[14:17:57] <marcospgp> hmm why is that
[14:17:59] *** orion1111 has quit IRC
[14:18:03] <gauravsaini03> in the input box
[14:18:14] *** GauravButola has joined #angularjs
[14:18:15] <opiispanen> it's not a string for angularjs
[14:18:21] <marcospgp> oh i seeeeeeeeeeeeee
[14:18:22] *** wachal has joined #angularjs
[14:18:23] <bealtine> because javascript
[14:18:26] <opiispanen> unless you put inside ''
[14:18:26] *** wachal has quit IRC
[14:18:39] <marcospgp> makes sense. i previously had an expression then changed it to a path but didn't add the quotes
[14:18:41] *** IJNX has joined #angularjs
[14:18:43] <marcospgp> thank you very much
[14:18:56] *** miname has joined #angularjs
[14:19:21] <gauravsaini03> opiispanen Can you please help in my issue ?
[14:19:34] *** nemothekid has quit IRC
[14:20:07] *** marcospgp has quit IRC
[14:20:09] <GauravButola> How do I use ng-click with <a> having prevendefault?
[14:20:11] *** defaultdict has joined #angularjs
[14:20:21] *** bejames has quit IRC
[14:20:32] *** nemothekid has joined #angularjs
[14:20:47] <Hounddog> GauravButola: why would you want that?
[14:20:54] <Hounddog> for a form submission?
[14:21:07] *** ineedarobot has quit IRC
[14:21:10] *** bramley has joined #angularjs
[14:21:25] *** Climax777 has quit IRC
[14:21:41] <ansu> I'm building a component where I have tabs to group data by year, month, week, day, ... For this I need to track active state and dates for each tab. The component itself should be reusable, but with arbitrary active state and dates. I'm thinking of creating a factory that creates new instances of an object where I track this stuff. Is a factory the right tool for this?
[14:21:41] *** bramley has quit IRC
[14:21:45] *** danielpquinn has quit IRC
[14:22:11] <opiispanen> gauravsaini03, what are you trying to achieve exactly?
[14:22:16] *** rik316 has quit IRC
[14:24:22] *** niheu has joined #angularjs
[14:24:55] *** mehlah has joined #angularjs
[14:25:07] *** DrMabuse has quit IRC
[14:25:43] *** DrMabuse has joined #angularjs
[14:25:55] <gauravsaini03> <opiispanen> Thanks for replying
[14:26:00] *** jamto11 has joined #angularjs
[14:26:09] <gauravsaini03> Actually i am using this dynamic locale plugin
[14:26:14] <gauravsaini03> to change locale on the fly
[14:26:43] <gauravsaini03> but the value does not change in the input box, so written a directive for that so it changes values on the fly
[14:26:43] *** Joulse has joined #angularjs
[14:26:57] <gauravsaini03> just issue is the decimal part is not working correctky
[14:27:10] *** dehn has joined #angularjs
[14:27:35] *** miname has quit IRC
[14:27:44] *** dehn has quit IRC
[14:27:52] *** ineedarobot has joined #angularjs
[14:28:12] *** tomzx`afk is now known as tomzx
[14:28:29] *** UniBot has joined #angularjs
[14:29:02] <opiispanen> mmkay, how should it work, I see it changes for example 1,234.56 1.234,56
[14:29:22] *** retornam has quit IRC
[14:29:26] *** bengillies has quit IRC
[14:29:54] *** fold has quit IRC
[14:30:22] <gauravsaini03> not dynamically
[14:30:22] *** biedekapp has joined #angularjs
[14:30:22] *** DrMabuse has quit IRC
[14:30:34] *** bengillies has joined #angularjs
[14:30:49] <gauravsaini03> <opiispanen> Have you changed the value in input box ?
[14:30:50] *** biedekapp has quit IRC
[14:31:02] *** guilbep has quit IRC
[14:31:32] *** b1rkh0ff has quit IRC
[14:31:44] *** UniBot1 has joined #angularjs
[14:32:08] *** retornam has joined #angularjs
[14:32:45] <gauravsaini03> The example I posted you can see that in input box value is 10,001 but the real value is 10,000.50
[14:33:06] <gauravsaini03> opiispanen Did you got my point ?
[14:33:20] *** DrMabuse has joined #angularjs
[14:33:34] *** pozzi has joined #angularjs
[14:34:13] *** foofoobar has quit IRC
[14:34:24] *** foofoobar has joined #angularjs
[14:34:33] *** pskrz has joined #angularjs
[14:34:45] *** guilbep has joined #angularjs
[14:34:53] *** IJNX has quit IRC
[14:35:26] *** hugofirth has joined #angularjs
[14:35:29] *** GauravButola has quit IRC
[14:35:56] *** Fishy has quit IRC
[14:36:16] *** pozzi has quit IRC
[14:36:16] <opiispanen> gauravsaini03, you have the function called number
[14:36:21] *** caitp has joined #angularjs
[14:36:27] <opiispanen> return filter(value, 0)
[14:36:37] <opiispanen> that rounds the 0,50 to 1
[14:36:45] <opiispanen> put filter(value, 2)
[14:37:09] *** jtimon has joined #angularjs
[14:37:32] *** IJNX has joined #angularjs
[14:37:45] *** fixl has quit IRC
[14:37:47] *** evan_e has joined #angularjs
[14:37:47] *** UniBot has quit IRC
[14:37:53] *** evan_e has quit IRC
[14:38:12] <gauravsaini03> thanks opiispanen this issue solved after this change.
[14:38:28] <gauravsaini03> Another thing is that now when I change the decimal part in input box
[14:38:42] <gauravsaini03> its not working correctly
[14:39:10] *** habina has joined #angularjs
[14:39:25] <opiispanen> strange behaviour
[14:39:27] *** habina has quit IRC
[14:40:13] *** sinclair|work has quit IRC
[14:40:31] <gauravsaini03> <opiispanen> Yes, its seems some problem not able to figure it out :(
[14:41:28] *** UniBot1 has quit IRC
[14:41:36] *** josh-k has joined #angularjs
[14:41:46] *** UniBot has joined #angularjs
[14:41:50] *** phuh has quit IRC
[14:42:03] *** zbzzn has quit IRC
[14:42:15] *** vbabiy has joined #angularjs
[14:42:16] *** phuh has joined #angularjs
[14:42:21] *** slainer68 has joined #angularjs
[14:42:22] *** westerhof has joined #angularjs
[14:42:24] *** patrick99e99 has joined #angularjs
[14:42:39] *** westerhof has quit IRC
[14:43:05] *** mfunkie has joined #angularjs
[14:43:23] *** LoveAndHappiness has quit IRC
[14:43:39] *** hswolff has quit IRC
[14:43:52] *** InezK_away is now known as InezK
[14:44:00] *** DoubleAW has quit IRC
[14:44:01] *** nemothekid has quit IRC
[14:44:34] *** bengillies has quit IRC
[14:45:16] *** ineedarobot has quit IRC
[14:45:24] *** Elezium has joined #angularjs
[14:45:28] *** hswolff has joined #angularjs
[14:45:34] *** soffel has joined #angularjs
[14:45:36] *** mupkoo has joined #angularjs
[14:45:51] *** soffel has quit IRC
[14:46:11] *** DoubleAW has joined #angularjs
[14:46:59] *** patrick99e99 has quit IRC
[14:48:17] *** lucasefe has quit IRC
[14:48:48] *** tilley has joined #angularjs
[14:49:08] *** tilley has quit IRC
[14:49:21] *** dob_ has quit IRC
[14:49:53] *** dob_ has joined #angularjs
[14:50:12] *** atomical has quit IRC
[14:51:20] *** Dan__ has joined #angularjs
[14:51:27] *** dob__ has joined #angularjs
[14:51:58] *** musgrave has joined #angularjs
[14:52:39] *** jamto11 has quit IRC
[14:53:27] *** InezK is now known as InezK_away
[14:53:42] *** imehesz has joined #angularjs
[14:53:47] *** DrMabuse has quit IRC
[14:54:21] *** DrMabuse has joined #angularjs
[14:54:24] *** dob_ has quit IRC
[14:54:59] *** Kay-z has joined #angularjs
[14:55:06] *** UniBot has quit IRC
[14:55:10] *** ineedarobot has joined #angularjs
[14:55:16] *** bengillies has joined #angularjs
[14:55:24] *** UniBot has joined #angularjs
[14:55:51] *** endash has joined #angularjs
[14:55:53] *** bluesm has joined #angularjs
[14:55:55] *** mettjus has quit IRC
[14:56:01] *** livingstn has joined #angularjs
[14:56:02] *** Kay-z has quit IRC
[14:56:16] *** tplaner has joined #angularjs
[14:57:05] *** cactauz has quit IRC
[14:57:10] *** endash has quit IRC
[14:58:08] *** Elezium has quit IRC
[14:58:33] *** mettjus has joined #angularjs
[14:58:58] *** naxs has quit IRC
[14:59:07] *** CodeFriar has quit IRC
[14:59:38] *** Sky[x] has joined #angularjs
[15:00:26] *** mmccook has joined #angularjs
[15:00:52] *** naxs has joined #angularjs
[15:01:19] *** night-owl2 has quit IRC
[15:01:23] *** cacts|works has joined #angularjs
[15:01:35] *** meinside has quit IRC
[15:02:26] *** TorchDragon has joined #angularjs
[15:02:32] *** mccarrontr1ck has joined #angularjs
[15:04:23] *** raypulver has quit IRC
[15:04:55] *** raypulver has joined #angularjs
[15:05:06] *** darrin has joined #angularjs
[15:05:06] *** Joshee has quit IRC
[15:05:17] *** mykz_ has quit IRC
[15:05:30] <DevAntoine> I'm trying to test a directive with a shared scope. How can I set variables on the scope?
[15:05:42] *** mettjus has quit IRC
[15:05:44] *** klaut has joined #angularjs
[15:07:28] *** sharondio has quit IRC
[15:07:39] *** fedenunez has joined #angularjs
[15:08:13] *** moritzs has joined #angularjs
[15:08:14] *** danyim has joined #angularjs
[15:08:37] *** elux has quit IRC
[15:08:57] *** Elezium has joined #angularjs
[15:08:59] *** zfogg has quit IRC
[15:08:59] *** drej has joined #angularjs
[15:09:04] <DevAntoine> for instance in my directive I do get values like that: $scope.myVar. So, in the test, I've tried to write: $scope.myVar = foo; $scope.$digest; but $scope.myVar is undefined
[15:09:17] *** LoveAndHappiness has joined #angularjs
[15:09:23] *** seydoggy has joined #angularjs
[15:10:44] *** SpearThruster has joined #angularjs
[15:11:05] *** drej_ has joined #angularjs
[15:12:15] *** Scathen^C has joined #angularjs
[15:12:22] *** mettjus has joined #angularjs
[15:12:31] *** FunnyLookinHat has quit IRC
[15:12:43] *** drej_ has quit IRC
[15:12:43] *** drej_ has joined #angularjs
[15:12:46] *** drej has quit IRC
[15:12:48] *** drej_ is now known as drej
[15:12:50] *** danyim has quit IRC
[15:13:07] *** naxs has quit IRC
[15:13:10] *** Nurbs has joined #angularjs
[15:13:53] *** fedenunez has quit IRC
[15:16:17] *** FIFOd[a] has joined #angularjs
[15:17:02] *** DrMabuse has quit IRC
[15:17:33] *** danielpquinn has joined #angularjs
[15:18:00] *** lw has joined #angularjs
[15:18:17] *** kaeku has joined #angularjs
[15:18:37] *** DrMabuse has joined #angularjs
[15:19:28] *** Sbrun has joined #angularjs
[15:19:46] <Scathen^C> anyone here tried to dynamically add ng-model in a directives compile function. Any ideas why it wouldnt work?
[15:20:00] *** BillCriswell has joined #angularjs
[15:20:08] *** DrMabuse has quit IRC
[15:21:01] *** lite_ has quit IRC
[15:21:14] *** Nurbs has quit IRC
[15:22:13] *** naxs has joined #angularjs
[15:22:24] *** danielpquinn has quit IRC
[15:23:15] *** Tidwell has joined #angularjs
[15:23:31] <DevAntoine> Scathen^C: yes, I've already tried it, without any success
[15:23:41] *** zivester has joined #angularjs
[15:24:23] *** khodgson has joined #angularjs
[15:24:43] *** elux has joined #angularjs
[15:25:14] *** khodgson has quit IRC
[15:25:15] *** UniBot has quit IRC
[15:25:33] *** UniBot has joined #angularjs
[15:26:02] <Scathen^C> DevAntoine what seems to be your problem?
[15:26:14] <Scathen^C> ng-scope is added to any element where a scope is attached
[15:26:18] *** naxs has quit IRC
[15:26:35] <DevAntoine> Scathen^C: well, I don't know why the test doesn't pass
[15:26:43] *** mettjus has quit IRC
[15:27:16] *** msarta has quit IRC
[15:27:24] <Scathen^C> it fails because ng-scope is added
[15:27:54] *** MANCHUCK has joined #angularjs
[15:27:56] *** teslanick has joined #angularjs
[15:27:59] *** sacho has joined #angularjs
[15:28:06] *** naxs has joined #angularjs
[15:28:16] *** DrMabuse has joined #angularjs
[15:28:35] *** xyNNN has joined #angularjs
[15:29:23] <DevAntoine> Scathen^C: when I inspect my working code there's no ng-scope added to the element having a directive
[15:29:28] *** teslanick has left #angularjs
[15:29:54] *** calumet has joined #angularjs
[15:30:34] <DevAntoine> Scathen^C: oh, my bad
[15:30:48] <DevAntoine> Scathen^C: I wasn't getting what you were trying to tell me
[15:31:22] *** kas84 has joined #angularjs
[15:31:38] *** BMCouto has joined #angularjs
[15:32:01] *** jonasliljestrand has quit IRC
[15:32:13] *** diffkid has quit IRC
[15:32:18] *** bertrandk has quit IRC
[15:32:28] *** MANCHUCK_ has joined #angularjs
[15:32:42] *** Fishy has joined #angularjs
[15:33:00] *** juanlas has joined #angularjs
[15:33:16] *** gkap has quit IRC
[15:33:18] *** Nizumzen has joined #angularjs
[15:34:28] *** karihre_ has left #angularjs
[15:34:29] *** FunnyLookinHat has joined #angularjs
[15:34:35] *** MANCHUCK has quit IRC
[15:34:40] *** dariocravero has joined #angularjs
[15:35:24] *** elux has quit IRC
[15:35:32] *** zfogg has joined #angularjs
[15:35:59] *** caitp has quit IRC
[15:36:00] *** elux has joined #angularjs
[15:36:16] *** sigurding_ has joined #angularjs
[15:37:45] *** knownasilya has joined #angularjs
[15:37:55] *** teeray has joined #angularjs
[15:38:17] *** sigurding has quit IRC
[15:38:17] *** sigurding_ is now known as sigurding
[15:38:21] *** lucasefe has joined #angularjs
[15:38:34] *** secondjeff has joined #angularjs
[15:39:14] *** IJNX has quit IRC
[15:39:54] *** zfogg has quit IRC
[15:40:03] *** avens has joined #angularjs
[15:40:27] *** sakustar_ is now known as sakustar
[15:41:11] *** yoshokatana has joined #angularjs
[15:41:27] *** Scathen^C has quit IRC
[15:42:03] *** jobelenus has joined #angularjs
[15:42:37] *** bphogan_afk is now known as bphogan
[15:42:43] *** Bardosity has quit IRC
[15:42:55] *** patrick99e99 has joined #angularjs
[15:43:07] *** Scathen^C has joined #angularjs
[15:43:38] <Scathen^C> alright, so ive got ng-model working when adding dynamically in the directive compile function, but i cant get validation to work now...
[15:44:15] <gauravsaini03> Hello Scathen^C
[15:44:16] <gauravsaini03> <Scathen^C>
[15:44:37] <Scathen^C> hi
[15:44:40] *** InezK_away is now known as InezK
[15:45:00] *** Thorn__ has joined #angularjs
[15:45:16] <gauravsaini03> <Scathen^C> Can you help me in this ?
[15:45:22] <gauravsaini03> the decimal place is not working in it
[15:45:23] *** wiherek has quit IRC
[15:45:25] *** jayturn has quit IRC
[15:45:44] <greengriminal> it keeps returning a undefined method 'push' when I'v e intialised this on the class.
[15:45:48] <gauravsaini03> When we try adding decimal value in imput box
[15:45:48] *** avens_ has joined #angularjs
[15:45:56] <gauravsaini03> it behave in strange
[15:47:00] *** francisl has joined #angularjs
[15:47:03] *** Thorn has quit IRC
[15:47:23] *** patrick99e99 has quit IRC
[15:47:54] <Scathen^C> what exactly is the problem?
[15:48:09] <Scathen^C> what does the decimal place is not working in it mean?
[15:48:25] *** bphogan is now known as bphogan_afk
[15:48:39] *** the_fog has joined #angularjs
[15:48:44] *** foofoobar has quit IRC
[15:48:59] *** jdj_dk has quit IRC
[15:49:30] *** avens has quit IRC
[15:50:10] *** akrikos_ has joined #angularjs
[15:51:24] *** jdj_dk has joined #angularjs
[15:51:32] *** UniBot has quit IRC
[15:51:46] *** Tidwell has quit IRC
[15:51:54] *** UniBot has joined #angularjs
[15:51:57] *** akrikos has quit IRC
[15:51:58] *** akrikos_ is now known as akrikos
[15:52:21] *** plitzenberger has joined #angularjs
[15:52:52] *** Nurbs has joined #angularjs
[15:52:57] *** shackleford has joined #angularjs
[15:52:59] *** Joshee has joined #angularjs
[15:53:00] *** fedenunez has joined #angularjs
[15:54:15] *** InezK is now known as InezK_away
[15:54:15] *** shackleford has quit IRC
[15:54:30] *** shackleford has joined #angularjs
[15:54:35] *** Thorn__ is now known as Thorn
[15:55:08] *** sharondio has joined #angularjs
[15:55:23] *** bengillies has quit IRC
[15:55:37] *** kas84 has quit IRC
[15:55:47] *** Aswebb has joined #angularjs
[15:55:55] *** JosephSilber has joined #angularjs
[15:56:05] *** orion1111 has joined #angularjs
[15:56:06] *** Destos has joined #angularjs
[15:56:20] *** prbc has quit IRC
[15:56:33] *** Bade has joined #angularjs
[15:56:36] *** bengillies has joined #angularjs
[15:56:43] *** Sbrun has quit IRC
[15:56:55] *** prbc has joined #angularjs
[15:57:22] *** volk_ has joined #angularjs
[15:57:33] *** Sky[x] has quit IRC
[15:57:36] <DevAntoine> if I remve the call to the service in the directive and the mock of it in the spec file, my test pass
[15:57:44] *** shinnya has joined #angularjs
[15:57:48] <DevAntoine> if I don't, elt, in my test, is undefined
[15:57:50] <DevAntoine> wtf?
[15:58:16] *** caitp has joined #angularjs
[15:58:24] *** gauravsaini03 has quit IRC
[15:58:30] *** Kay-z has joined #angularjs
[15:58:46] *** volk_ has quit IRC
[15:58:46] *** mpaarating has joined #angularjs
[15:59:02] *** volk_ has joined #angularjs
[15:59:10] *** volk_ has joined #angularjs
[16:00:05] *** volk_ has quit IRC
[16:00:12] *** hychen has joined #angularjs
[16:00:17] *** sweeper_ is now known as sweeper
[16:00:40] *** Asiajey has quit IRC
[16:00:42] *** Schtive has joined #angularjs
[16:00:50] *** btyne has joined #angularjs
[16:01:29] *** prbc has quit IRC
[16:01:36] *** davemerwin has joined #angularjs
[16:01:44] <eden_lane> Does anybody knows CMS that uses angular.js ?
[16:02:02] *** DrMabuse has quit IRC
[16:02:32] *** MTGap has joined #angularjs
[16:02:47] *** bertrandk has joined #angularjs
[16:03:03] *** jeffszusz has joined #angularjs
[16:03:04] *** cspra85 has joined #angularjs
[16:03:08] *** DrMabuse has joined #angularjs
[16:03:13] *** Siecje has joined #angularjs
[16:03:35] *** UniBot has quit IRC
[16:04:17] *** Scathen^C has quit IRC
[16:04:22] *** phuh has quit IRC
[16:04:41] *** robertzehnder has joined #angularjs
[16:04:47] *** phuh has joined #angularjs
[16:05:13] *** Methylated has joined #angularjs
[16:05:20] *** prbc has joined #angularjs
[16:05:39] *** Snugug has joined #angularjs
[16:05:46] *** kas84 has joined #angularjs
[16:06:03] *** RubenCordeiro has joined #angularjs
[16:06:14] <RubenCordeiro> hi folks
[16:06:16] *** MTGap has quit IRC
[16:06:26] *** fedenunez has quit IRC
[16:06:36] *** IJNX has joined #angularjs
[16:06:38] <RubenCordeiro> I have a question: when using angular ui-router
[16:07:11] <RubenCordeiro> is there any way to name a ui-view explicitly besides making the ui-view an attribute of a div element?
[16:07:17] *** ngoyal has joined #angularjs
[16:07:24] *** robertzehnder has left #angularjs
[16:07:26] *** arizzo has joined #angularjs
[16:07:27] *** bertrandk has quit IRC
[16:07:34] <RubenCordeiro> i.e <ui-view name="Something"></ui-view>
[16:07:47] *** Ilyas has quit IRC
[16:08:12] <RubenCordeiro> in the documentation, I only see two ways: <ui-view/> (anonymous) or <div ui-view="viewName"></div>
[16:08:16] *** tomzx is now known as tomzx`afk
[16:09:43] *** encrypt3d_fracti has joined #angularjs
[16:09:52] *** mdedetrich has joined #angularjs
[16:09:53] *** Snugug has quit IRC
[16:10:04] *** Snugug has joined #angularjs
[16:10:26] *** vbabiy has quit IRC
[16:10:31] *** fedenunez has joined #angularjs
[16:10:45] *** vbabiy has joined #angularjs
[16:10:46] *** mdedetrich has quit IRC
[16:11:15] *** mdedetrich has joined #angularjs
[16:11:29] *** umib0zu has joined #angularjs
[16:11:59] *** zivester has quit IRC
[16:12:10] *** prbc has quit IRC
[16:12:42] *** dob_ has joined #angularjs
[16:12:47] *** prbc has joined #angularjs
[16:13:01] *** patrick99e99 has joined #angularjs
[16:14:09] <prikk> RubenCordeiro: I don't know, but a "ui-view element" is essentially a div, so why care? :)
[16:14:42] <RubenCordeiro> well, actually, you can name a ui view like I suggested: <ui-view name="ViewName"></ui-view>
[16:14:49] *** atomical has joined #angularjs
[16:14:58] <RubenCordeiro> I didn't actually tried that before asking.
[16:15:01] <RubenCordeiro> Silly.
[16:15:08] *** Kay-z is now known as CodeFriar
[16:15:08] *** arizzo has quit IRC
[16:15:35] *** arizzo has joined #angularjs
[16:15:45] *** vbabiy has quit IRC
[16:15:57] <RubenCordeiro> @prikk: If I nested the view inside a div element, I would break the css markup that the design team made up.
[16:16:04] *** dob__ has quit IRC
[16:16:06] *** vbabiy has joined #angularjs
[16:16:13] *** IJNX has quit IRC
[16:16:22] *** mary5030 has joined #angularjs
[16:16:30] *** zuppa has joined #angularjs
[16:16:41] *** pootpoot has joined #angularjs
[16:17:27] <prikk> RubenCordeiro: okay, i guess it's out of your hands but you should propose to the design team to target classes or something instead
[16:17:28] *** prbc has quit IRC
[16:17:30] <prikk> like BEM
[16:17:38] <prikk> because that's just silly
[16:17:39] <prikk> :-)
[16:17:46] *** Cavallari has joined #angularjs
[16:17:50] *** zuppa has left #angularjs
[16:17:56] *** patrick99e99 has quit IRC
[16:18:07] *** bbankes has joined #angularjs
[16:18:16] <RubenCordeiro> I agree with you, but in the meantime I just gotta live with their decisions.
[16:18:16] *** TorpedoSkyline has joined #angularjs
[16:18:17] <Dan__> i need a $scope function called "init()" that runs code in a service. in the controller file the service is injected as a parameter to the 'controller' function and the init() function is defined on $scope. basic stuff.am i supposed to make the service an attribute of the controller and refer to it in init()? i feel like i'm way more confused than necessary
[16:18:20] *** danielpquinn has joined #angularjs
[16:18:42] <shackleford> I am making an API call using $resource in a service
[16:18:43] *** jamesshijie has joined #angularjs
[16:18:59] *** matpb has joined #angularjs
[16:19:19] <shackleford> If I inject that service into multiple controllers, is it best to pass the ID # and make an API in both controllers
[16:19:21] *** davi has joined #angularjs
[16:19:22] *** bbsss has joined #angularjs
[16:19:27] *** davi has quit IRC
[16:19:27] *** davi has joined #angularjs
[16:19:37] <shackleford> or make the call once and then pass the data from one controller to the other
[16:19:40] <shackleford> ?
[16:20:11] *** whitebook has joined #angularjs
[16:20:11] *** arizzo has quit IRC
[16:20:18] <prikk> it sounds best to make the service singleton take care of the value, so you avoid multiple ajax calls
[16:20:30] *** jamesshijie has quit IRC
[16:20:40] <prikk> maybe you can call some init method from both controllers that'll only refresh the "model" once or something
[16:20:53] *** stirlingw has joined #angularjs
[16:21:19] *** davedev24_ has joined #angularjs
[16:21:28] <Dan__> angular.module('decision').controller('ChooseCategoriesController',
[16:21:28] <Dan__> function($scope, $rootScope, $stateParams, $location, Authentication, Categories, Decisions) {
[16:21:28] <Dan__> var Decisions = Decisions;
[16:21:30] <Dan__> $scope.init = function() {
[16:21:32] <Dan__> $scope.decision = this.Decisions.getDecision();
[16:21:34] <Dan__> $scope.categories = Categories.query();
[16:21:36] <Dan__> };
[16:21:38] <Dan__> }
[16:21:40] <Dan__> );
[16:21:48] <apipkin> Dan__: please use a paste bin
[16:21:50] <Dan__> that was uglier than i expected
[16:22:03] *** TorpedoSkyline has quit IRC
[16:22:04] <Dan__> sorry. i'm a chat newb as well as an angular newb
[16:22:25] *** tschundeee has quit IRC
[16:22:29] <apipkin> no worries, we all get one :)
[16:22:52] *** danielpquinn has quit IRC
[16:23:14] <Dan__> in my defense, it's a little misleading that limechat asks me what sort of code i am pasting
[16:23:28] *** epantzar has quit IRC
[16:23:54] <apipkin> IRCCloud asks if you want to paste into a paste bin hehe
[16:24:10] *** cyen_ has quit IRC
[16:24:33] *** jdcasey has joined #angularjs
[16:25:06] *** jamesshijie has joined #angularjs
[16:25:19] *** calumet has quit IRC
[16:25:22] <RubenCordeiro> Answering your question, Dan: I never make services attributes of the controller, unless there's a particular need for it to happen. Services are a powerful way communicating between controllers.
[16:25:53] *** secondjeff has quit IRC
[16:25:59] <RubenCordeiro> the var Decisions = Decisions is unnecessary in my opinion.
[16:26:23] *** jamesshijie has quit IRC
[16:26:25] <RubenCordeiro> $scope.decision = Decisions.getDecision();
[16:26:30] <RubenCordeiro> is enough
[16:27:39] *** Willow has joined #angularjs
[16:27:55] *** colinbits has joined #angularjs
[16:28:22] *** calumet has joined #angularjs
[16:28:28] <shackleford> Ok, so I have a service using $resource, when I make an API call, how do I store that return data in a variable (in the service) that can be accessed by multiple controllers?
[16:28:34] *** mmitchel_ has joined #angularjs
[16:28:55] <shackleford> Also, is this an appropriate approach?
[16:30:12] <davemerwin> has anyone been having problems with Chrome? Slow performance, bad bug reporting? What do you use for development and testing
[16:30:22] <RubenCordeiro> @shackleford: could you explain your problem a little better, do you want to make an API call and make the persisted response available to a set a scopes?
[16:30:22] *** MANCHUCK__ has joined #angularjs
[16:30:24] *** MANCHUCK__ is now known as MANCHUCK
[16:30:44] <shackleford> your question is exactly what I am trying to do
[16:30:51] <shackleford> I want to make 1 API call
[16:31:02] *** _tpavel has quit IRC
[16:31:06] <shackleford> and persist the response to be used in multiple $scopes
[16:31:18] <shackleford> $scopes/controllers
[16:31:21] *** _tpavel has joined #angularjs
[16:31:30] <Dan__> RubenCordeiro, that's what I had before. It's saying "undefined is not a function" referring to that line
[16:31:34] *** Pipaul has joined #angularjs
[16:31:35] *** UniBot has joined #angularjs
[16:31:41] <matpb> inject it where needed (controller('MyCtrl', function($scope, ResourceName){})
[16:32:10] <shackleford> matpb, ok, but is the persisted in the service?
[16:32:17] <shackleford> *data
[16:32:19] <Dan__> oh, wait a sec. it looks like i do not need an init method at all.
[16:32:44] <bbsss> I am trying to use protractor, I have a selenium instance running, I have an instance of the app running. When I run protractor conf.js chrome gets opened in a seperate window and quickly after closes
[16:32:45] *** colinbit_ has joined #angularjs
[16:33:12] *** MANCHUCK_ has quit IRC
[16:33:14] <bbsss> the errors I get are super unhelpful: “Error: timeout of 0ms exceeded
[16:33:42] <bbsss> I am lost because google won’t find anything for me for the past hour+
[16:33:44] *** plitzenberger has quit IRC
[16:33:47] <RubenCordeiro> @shackleford: if you declare an internal variable, all internal changes to that variable will be persisted
[16:34:35] <bbsss> anyone able to help me?
[16:34:44] *** colinbits has quit IRC
[16:35:20] <RubenCordeiro> @bbsss: unfortunately, I can't help you, never used protactor.
[16:35:32] *** hannesvdvreken has quit IRC
[16:36:08] <shackleford> thx RubenCordeiro & matpb
[16:36:27] *** zfogg has joined #angularjs
[16:36:30] *** Olsonfold has joined #angularjs
[16:36:50] *** amargherio has joined #angularjs
[16:36:56] *** Pipaul has quit IRC
[16:37:03] *** mrwn has joined #angularjs
[16:38:22] *** hannesvdvreken has joined #angularjs
[16:38:56] *** Stampy has quit IRC
[16:39:00] *** naxs1 has joined #angularjs
[16:39:52] *** hannesvdvreken has quit IRC
[16:39:52] *** naxs has quit IRC
[16:39:52] *** MANCHUCK has quit IRC
[16:39:54] <Siecje> How can you store objects so that when you return to a route you don't have to retrieve them?
[16:39:57] *** secondjeff has joined #angularjs
[16:40:00] *** donatasd` has joined #angularjs
[16:40:17] *** hannesvdvreken has joined #angularjs
[16:40:19] *** MANCHUCK has joined #angularjs
[16:40:29] *** dcherman has joined #angularjs
[16:40:34] *** prbc has joined #angularjs
[16:40:34] *** mercwithamouth has quit IRC
[16:41:02] *** kas84 has quit IRC
[16:41:06] *** zfogg has quit IRC
[16:41:30] *** naxs has joined #angularjs
[16:42:14] *** colinbit_ has quit IRC
[16:42:25] *** sonicparke|bradm has joined #angularjs
[16:42:53] *** prbc has quit IRC
[16:43:01] *** amargherio has quit IRC
[16:43:05] *** Click66 has quit IRC
[16:43:23] *** naxs1 has quit IRC
[16:44:38] <DevAntoine> Siecje: by caching them
[16:44:48] *** colinbits has joined #angularjs
[16:44:48] *** naxs has joined #angularjs
[16:45:08] *** InezK_away is now known as InezK
[16:45:26] *** josh-k has quit IRC
[16:45:32] *** RubenCordeiro has quit IRC
[16:45:59] *** josh-k has joined #angularjs
[16:46:13] <DevAntoine> is that even possible to have spies in tests directive?
[16:46:29] <DevAntoine> I mean directive's tests
[16:47:09] *** lsiv568 has quit IRC
[16:47:23] *** Sbrun has joined #angularjs
[16:47:27] *** bc has left #angularjs
[16:47:27] *** francisl has quit IRC
[16:47:31] *** secondjeff has quit IRC
[16:47:42] *** amargherio has joined #angularjs
[16:47:47] *** Silne30_ has joined #angularjs
[16:48:45] *** Nurbs has quit IRC
[16:49:12] *** bbankes has quit IRC
[16:49:34] *** TorpedoSkyline has joined #angularjs
[16:49:42] *** AndyFTP has quit IRC
[16:50:23] *** josh-k has quit IRC
[16:50:38] *** secondjeff has joined #angularjs
[16:50:42] *** stodan has quit IRC
[16:50:44] *** jpstone has joined #angularjs
[16:50:59] *** jamesshijie has joined #angularjs
[16:51:43] *** blueadept has joined #angularjs
[16:51:48] *** Snugug has quit IRC
[16:51:50] *** gkap has joined #angularjs
[16:51:50] *** linojon has joined #angularjs
[16:51:53] *** Patrick_Baitman has quit IRC
[16:52:02] *** fwielstra has quit IRC
[16:52:15] *** ineedarobot has quit IRC
[16:52:27] *** thedodd has joined #angularjs
[16:53:53] *** narutimateum has quit IRC
[16:53:54] *** Jae has quit IRC
[16:54:40] *** shaym has joined #angularjs
[16:54:55] *** jshultz has joined #angularjs
[16:54:56] *** elrabin_ has quit IRC
[16:54:57] *** InezK is now known as InezK_away
[16:55:23] *** elrabin has joined #angularjs
[16:55:47] *** ineedarobot has joined #angularjs
[16:55:50] *** francisl has joined #angularjs
[16:56:25] *** krawek has joined #angularjs
[16:57:39] *** swirlycheetah has quit IRC
[16:57:42] *** frickettz has quit IRC
[16:59:29] *** Cavallari has quit IRC
[16:59:39] *** subnl2 has joined #angularjs
[17:00:00] *** IanOlson has joined #angularjs
[17:00:14] *** JohnBat26 has quit IRC
[17:00:54] *** orion1111 has quit IRC
[17:01:14] *** elrabin_ has joined #angularjs
[17:01:21] *** Nurbs has joined #angularjs
[17:01:26] *** Christer has quit IRC
[17:01:32] *** icfantv has joined #angularjs
[17:01:34] *** Snugug has joined #angularjs
[17:01:59] *** Sbrun has quit IRC
[17:02:19] *** phrozensilver has joined #angularjs
[17:02:32] *** Aartsie has joined #angularjs
[17:02:42] *** elrabin has quit IRC
[17:02:44] *** mennea has quit IRC
[17:03:27] <yoshokatana> morning angularodes
[17:03:35] *** Siecje has quit IRC
[17:03:38] *** Sky[x] has joined #angularjs
[17:03:57] *** spazbite has quit IRC
[17:04:02] *** glook has joined #angularjs
[17:04:17] <glook> Is there any injection required to use JSON.stringify() ?
[17:04:23] *** phuh has quit IRC
[17:04:32] *** moritzs has quit IRC
[17:04:51] *** phuh has joined #angularjs
[17:04:54] *** olli- is now known as olli-F5
[17:05:13] *** elrabin_ has quit IRC
[17:05:41] <sharondio> Anybody know the status of Plunker? Can’t seem to login with my Github credentials.
[17:05:47] *** xavia has joined #angularjs
[17:06:00] *** Aartsie_ has quit IRC
[17:06:11] <bd> glook, no, but you can use angular.toJson/fromJson if you'd prefer.
[17:06:13] *** mehlah has quit IRC
[17:06:18] *** jobelenus has quit IRC
[17:06:19] *** cthrax has joined #angularjs
[17:06:41] <glook> I already have the object in JSON format, just want it to display well in the browser. Seem like the right path?
[17:07:04] *** Aartsie has quit IRC
[17:07:07] *** olveraricardo72 has joined #angularjs
[17:07:15] <bd> oh, you just want to display a json object on a page?
[17:07:16] *** AlexZanf has joined #angularjs
[17:07:20] *** VeeWee has quit IRC
[17:07:41] *** ccohn has quit IRC
[17:07:47] <bd> you could do, <code>{{whatever|json}}</code>
[17:08:06] *** zeroquake has joined #angularjs
[17:08:18] *** ccohn has joined #angularjs
[17:08:20] *** naneau has joined #angularjs
[17:08:32] <glook> cool. will try.
[17:08:50] *** mmitchel_ has quit IRC
[17:09:31] *** HansiHE has quit IRC
[17:09:53] *** danyim has joined #angularjs
[17:10:03] *** MaxV has quit IRC
[17:10:47] *** aendrew has joined #angularjs
[17:11:07] <aendrew> Howdy all, I have a really elementary question I can’t seem to figure out for the life of me.
[17:11:09] *** ccohn_ has joined #angularjs
[17:11:43] *** ccohn has quit IRC
[17:11:52] *** Sbrun has joined #angularjs
[17:12:08] *** mfunkie has quit IRC
[17:12:12] *** jobelenus has joined #angularjs
[17:12:17] *** rho has joined #angularjs
[17:12:18] *** rho has joined #angularjs
[17:12:22] *** Nurbs has quit IRC
[17:12:35] *** AngularUI has joined #angularjs
[17:12:35]
<AngularUI> [ng-grid] c0bra closed pull request #1323: Update CONTRIBUTING.md (3.0...3.0) http://git.io/HYs1Xw
[17:12:35] *** AngularUI has left #angularjs
[17:12:44] *** glook has quit IRC
[17:12:51] <aendrew> Essentially, I have a directive that instantiates a jQuery-based chart library, assigned to `var chart`. I need to call a method from the local `chart` variable when a variable from the attached controller changes, however, I can’t seem to get anything to fire the $watch.
[17:12:54] *** sacho has quit IRC
[17:13:23] *** jae has joined #angularjs
[17:13:33] *** patrick99e99 has joined #angularjs
[17:13:35] *** intellix has quit IRC
[17:13:35] *** josh-k has joined #angularjs
[17:14:03] *** intellix has joined #angularjs
[17:14:32] *** subnl2 has left #angularjs
[17:14:39] *** danyim has quit IRC
[17:15:01] *** Scathen^C has joined #angularjs
[17:15:02] *** prbc has joined #angularjs
[17:15:08] *** jobelenus_ has joined #angularjs
[17:15:18] *** HypnotiX has quit IRC
[17:15:36] *** phrozensilver has quit IRC
[17:15:54] *** diffkid has joined #angularjs
[17:15:57] <uchuff> hi all
[17:17:12] *** jobelenus has quit IRC
[17:17:12] *** jobelenus_ is now known as jobelenus
[17:17:13] <uchuff> am grabbing some data from a (trusted) web service in angular, i'm getting an object that I'm using to build a select. How would I tell angular that the label can be displayed as html, rather than being escaped.
[17:17:35] <uchuff> elsewhere I'm using the ng-bind-html="" directive in my code
[17:17:56] *** mfunkie has joined #angularjs
[17:17:59] *** patrick99e99 has quit IRC
[17:18:09] <uchuff> but not sure if/how i can apply that on a select using ngoptions to set the label
[17:18:10] <DevAntoine> aendrew: you mean that you don't succeed to watch your controller's variables?
[17:18:24] <uchuff> if it helps I'm generating the label in my controller anyway
[17:18:57] <aendrew> DevAntoine: Yep; like, I’ve reduced it to having a simple scope variable attached via ngModel to a text field, and I’m watching that var in my controller, and nothing’s setting off $watch.
[17:19:05] *** danielpquinn has joined #angularjs
[17:19:05] *** Nurbs has joined #angularjs
[17:19:09] <DevAntoine> aendrew: make a plunker please
[17:19:17] <aendrew> Sure, just a sec…
[17:19:22] <DevAntoine> but I'd say it has something related with scopes
[17:19:24] <DevAntoine> as usual
[17:19:27] <DevAntoine> (almost)
[17:19:30] *** HansiHE has joined #angularjs
[17:19:31] *** donatasd` has quit IRC
[17:19:44] *** Sbrun has quit IRC
[17:19:54] *** storkme has joined #angularjs
[17:19:55] *** Aswebb has quit IRC
[17:20:08] *** volk_ has joined #angularjs
[17:20:10] *** bengilli_ has joined #angularjs
[17:20:14] <storkme> I have an angular service to do authentication (login, logout, persist user credentials) and it seems like it's kinda difficult to test the 'persist user credentials' part.. should that maybe be a separate service? (basic wrapper around $cookieStore)
[17:20:17] <volk_> hey guys — thoughts on using $routeProvider for tab based browsing? technicallly not a new "page" but it does rerender part of a layout
[17:20:41] <storkme> is there any way I can just get an instance of $cookieStore in my test so I can just put a spy on it?
[17:20:50] *** bengillies has quit IRC
[17:20:55] *** sneakertack has joined #angularjs
[17:21:18] *** visionary__ has joined #angularjs
[17:21:43] *** jdowdle|afk is now known as jdowdle
[17:21:47] <volk_> aendrew: perfect. thanks :P
[17:22:03] *** xyNNN has quit IRC
[17:22:52] *** lsiv568 has joined #angularjs
[17:23:15] *** JosephSilber has quit IRC
[17:23:24] *** jobelenus has quit IRC
[17:23:38] *** danielpquinn has quit IRC
[17:23:41] *** Siecje has joined #angularjs
[17:23:46] *** the_fog has quit IRC
[17:24:58] *** subnl2 has joined #angularjs
[17:25:05] *** Cydmax has quit IRC
[17:25:35] *** hannesvdvreken has quit IRC
[17:25:53] *** blueadept has quit IRC
[17:25:53] *** mrwn has quit IRC
[17:25:59] *** linojon has quit IRC
[17:26:09] *** snapwich has joined #angularjs
[17:26:21] *** mrwn has joined #angularjs
[17:26:29] *** Sbrun has joined #angularjs
[17:26:47] *** Nurbs has quit IRC
[17:27:06] *** trave has joined #angularjs
[17:27:10] *** fold has joined #angularjs
[17:27:15] *** Aswebb has joined #angularjs
[17:27:23] *** wafflejock has joined #angularjs
[17:27:56] *** prbc_ has joined #angularjs
[17:27:57] *** Nurbs has joined #angularjs
[17:28:01] *** mdedetrich has quit IRC
[17:28:07] *** djam90 has quit IRC
[17:28:20] *** Aswebb has quit IRC
[17:28:21] *** prbc has quit IRC
[17:28:30] *** the_fog has joined #angularjs
[17:28:47] *** bertrandk has joined #angularjs
[17:29:01] *** nlubisch has quit IRC
[17:29:10] *** gunn has quit IRC
[17:30:14] *** KamalKaur has joined #angularjs
[17:30:44] <aendrew> DevAntoine: I think I may have figured it out, had two views reading from the same controller.
[17:30:45] *** Xethron has joined #angularjs
[17:31:05] *** Nizumzen has quit IRC
[17:31:23] *** squeakytoy has quit IRC
[17:31:29] *** Sbrun has quit IRC
[17:31:44] <DevAntoine> aendrew: ok
[17:31:53] *** svycka has quit IRC
[17:32:08] *** Joshee has quit IRC
[17:32:41] *** BahamutWC|Work has quit IRC
[17:32:51] <aendrew> DevAntoine: Yep, that was totally it. Thanks for getting back to me regardless!
[17:33:24] *** holymac has joined #angularjs
[17:33:47] *** gkap has quit IRC
[17:33:50] *** gkaplan has joined #angularjs
[17:34:02] <DevAntoine> aendrew: np, sometimes I just get unstuck by writing the plunk to be posted
[17:34:04] *** jdj_dk has quit IRC
[17:34:09] <DevAntoine> aendrew: and tada!
[17:34:09] *** stirling_ has joined #angularjs
[17:34:10] *** tomzx`afk is now known as tomzx
[17:34:28] *** kemm0 has joined #angularjs
[17:34:34] <aendrew> DevAntoine: Lulz, “What do you *mean* I’m actually doing everything correctly?! …Oh.”
[17:35:13] *** BobbieBarker has quit IRC
[17:35:23] *** mtsr has quit IRC
[17:36:24] *** UniBot has quit IRC
[17:36:50] *** orion1111 has joined #angularjs
[17:37:21] *** stirlingw has quit IRC
[17:37:28] *** gjvc is now known as nbarley
[17:39:01] *** jae has quit IRC
[17:39:23] *** holymac has quit IRC
[17:39:30] <orion1111> bd: I just tested http interceptors and they work for routing pages and also ngincludes. Thanks for suggestion :)
[17:39:44] *** mpaarating has quit IRC
[17:40:16] *** patrick99e99 has joined #angularjs
[17:40:26] *** Sbrun has joined #angularjs
[17:40:57] *** Nurbs has quit IRC
[17:42:04] *** Sbrun has quit IRC
[17:42:10] *** mikronaz has quit IRC
[17:42:33] *** davemerwin has quit IRC
[17:42:58] *** defaultdict has quit IRC
[17:43:13] *** ahuna has quit IRC
[17:43:16] *** defaultdict has joined #angularjs
[17:43:33] <Dan__> i'm looking for a good example of a service. it will get data by ajax from a server, expose methods for use by controllers and hold state between different views
[17:43:39] *** Schtive has quit IRC
[17:44:16] *** crewshin has joined #angularjs
[17:44:52] *** crewshin has joined #angularjs
[17:45:03] *** night-owl2 has joined #angularjs
[17:45:24] *** startupality has joined #angularjs
[17:45:37] *** patrick99e99 has quit IRC
[17:45:56] *** InezK_away is now known as InezK
[17:46:11] *** CodeFriar has quit IRC
[17:46:25] *** naxs has quit IRC
[17:47:08] *** agrajag42 has joined #angularjs
[17:47:16] <aendrew> Sidenote: is Plunker going really slowly for anyone else today?
[17:47:26] *** jamesshijie has quit IRC
[17:47:27] *** ineedarobot has quit IRC
[17:47:41] *** subnl2 has quit IRC
[17:48:16] *** screamingbanshee has joined #angularjs
[17:48:37] *** rho has quit IRC
[17:48:47] *** jae has joined #angularjs
[17:50:47] *** ccohn_ has quit IRC
[17:50:51] *** LoveAndHappiness has quit IRC
[17:51:02] *** jobelenus has joined #angularjs
[17:51:14] *** bbankes has joined #angularjs
[17:51:21] *** ccohn has joined #angularjs
[17:51:33] *** rtpg has joined #angularjs
[17:51:41] *** Aswebb has joined #angularjs
[17:51:42] *** maveneag_ has joined #angularjs
[17:51:53] *** jamesshijie has joined #angularjs
[17:52:08] *** naxs has joined #angularjs
[17:52:30] *** naxs has quit IRC
[17:52:36] *** Click66 has joined #angularjs
[17:53:07] *** matpb has quit IRC
[17:53:37] *** encrypt3d_fracti has quit IRC
[17:53:47] *** mven_ has joined #angularjs
[17:54:13] *** mercwithamouth has joined #angularjs
[17:54:27] *** krawek has quit IRC
[17:54:44] *** subnl2 has joined #angularjs
[17:54:55] *** kemm0_ has joined #angularjs
[17:55:02] *** Gho5t has joined #angularjs
[17:55:10] *** amargherio has quit IRC
[17:55:21] *** jonasrosenlind has quit IRC
[17:55:28] *** kemm0 has quit IRC
[17:55:34] *** frostig has joined #angularjs
[17:55:42] *** ccohn has quit IRC
[17:55:43] *** InezK is now known as InezK_away
[17:56:33] *** mpaarating has joined #angularjs
[17:57:14] *** Asiajey has joined #angularjs
[17:57:14] *** Asiajey has joined #angularjs
[17:57:25] *** encrypt3d_fracti has joined #angularjs
[17:57:25] *** lsiv568 has quit IRC
[17:57:32] *** cswelin has quit IRC
[17:57:39] *** mven_ has quit IRC
[17:57:42] *** amargherio has joined #angularjs
[17:57:55] *** ineedarobot has joined #angularjs
[17:58:03] *** hugofirth has quit IRC
[17:58:40] <Gho5t> I'm creating a service that will be used by multiple controllers in the same view. Since a service is a singleton, I can't really set properties on it from each unique controller right?
[17:59:17] *** mven_ has joined #angularjs
[17:59:56] *** motionman has quit IRC
[18:00:19] *** MaxV has joined #angularjs
[18:00:21] *** danielpquinn has joined #angularjs
[18:00:22] *** night-owl2 has quit IRC
[18:00:26] *** tilgovi has joined #angularjs
[18:00:34] <snapwich> Gho5t: no but you could set dynamically named properties so they could be looked up uniquely
[18:00:44] *** rho has joined #angularjs
[18:00:45] *** rho has joined #angularjs
[18:00:56] *** waylon999 has joined #angularjs
[18:01:06] *** Scathen^C has quit IRC
[18:01:16] <Gho5t> snapwich: can you expound on that?
[18:01:20] *** jae has quit IRC
[18:01:31] <snapwich> services[property] = "something"
[18:01:40] <snapwich> and each controller uses a different property
[18:01:42] *** maveneag_ has quit IRC
[18:02:14] *** mfunkie has quit IRC
[18:02:43] <Gho5t> oh I see
[18:02:49] *** lsiv568 has joined #angularjs
[18:02:55] <Gho5t> the only thing is I don't really need a huge list of properties
[18:03:11] <Gho5t> I just have a couple I need to set that are used in one of the services methods
[18:03:21] <Gho5t> scratch that
[18:03:30] *** geoffstokes has quit IRC
[18:03:34] <Gho5t> I have a couple that I need to set that are used in <i>many</i> of the service's methods
[18:03:45] <snapwich> well why do you want to have your service have unique properties anyways. sounds like you're misusing it. it's a singleton in purpose
[18:03:53] *** UniBot has joined #angularjs
[18:04:15] *** LoveAndHappiness has joined #angularjs
[18:04:17] *** visionary___ has joined #angularjs
[18:04:20] <Gho5t> well I have a method that needs to set properties on a model when it's called
[18:04:27] *** phuh has quit IRC
[18:04:29] <Gho5t> each model would be different for each controller
[18:04:30] *** visionary__ has quit IRC
[18:04:43] <Gho5t> and without using a property I would have to pass my model to all of the methods in the service
[18:04:50] *** phuh has joined #angularjs
[18:05:22] <snapwich> sounds like that method should be on your model then
[18:05:29] <visionary___> hey
[18:05:42] *** InezK_away is now known as InezK
[18:05:42] <snapwich> hard to say without a plunkr though
[18:05:43] <Gho5t> well the model is just a plain old object on scope
[18:06:00] <snapwich> that's fine. plain old objects can have methods
[18:06:06] <visionary___> angular factory service uses a regular xmlhttp request, right?
[18:06:23] *** dob__ has joined #angularjs
[18:06:26] *** eden_lane has quit IRC
[18:06:31] *** fbenoit_ has quit IRC
[18:06:31] <Gho5t> snapwich: but what you're describing would mean I would have to copy the method to each controller's model
[18:06:35] *** Mrgoose has quit IRC
[18:06:46] *** bbrown has joined #angularjs
[18:06:52] <Gho5t> which is what it does currently I am trying to fix
[18:06:59] <visionary___> when i am making a call with an expired session I see the basic auth popup in the browser which i would like to avoid.
[18:07:06] *** subsonic has joined #angularjs
[18:07:21] *** Mrgoose3 has joined #angularjs
[18:07:40] *** cswelin has joined #angularjs
[18:07:42] <snapwich> copying the method to each model is what we do in OOP.
[18:07:47] *** DevAntoine has quit IRC
[18:07:56] *** vintik has joined #angularjs
[18:07:59] <Gho5t> but this isn't java
[18:08:07] *** Schtive has joined #angularjs
[18:08:08] <snapwich> no, it's javascript
[18:08:08] <Gho5t> unless I setup a contructor function
[18:08:11] *** vintik has quit IRC
[18:08:17] <Gho5t> there aren't classes
[18:08:30] *** orion1111 has quit IRC
[18:08:48] <snapwich> a constructor function is equivalent to a class
[18:08:50] <Gho5t> I'm talking about an object on scope in each controller that is created by doing $scope.chartModel = {};
[18:09:15] <Gho5t> I guess I could setup a constructor
[18:09:22] <Gho5t> but this is getting away from angular
[18:09:29] <snapwich> no it's not
[18:09:31] <Gho5t> I wanted to use a service cause it feels right
[18:09:34] *** lordkryss_ has joined #angularjs
[18:09:36] *** pushp0p has joined #angularjs
[18:09:45] <snapwich> use javascript before you use angular
[18:09:54] *** dob_ has quit IRC
[18:09:57] <Gho5t> well I haven't really seen anyone use a constructor with an angular scope property before
[18:10:02] <pushp0p> hey guys, anyone ever experience uglification/mangling totally breaking stuff? It's replacing my function with 4 arguments into a function with two arguments for reasons unknown to me
[18:10:08] <pushp0p> thereby totally screwing up angualr
[18:10:34] *** geoffstokes has joined #angularjs
[18:10:38] *** matpb has joined #angularjs
[18:10:39] *** startupality has quit IRC
[18:10:57] <visionary___> i guess the browser is poping up the Authentication Required before angular gets the 401
[18:11:16] <visionary___> Is there a way to avoid the popup
[18:11:30] *** rho has quit IRC
[18:11:36] *** dariocravero has quit IRC
[18:11:44] *** mven_ has quit IRC
[18:11:54] *** maveneagle has joined #angularjs
[18:11:55] *** MANCHUCK_ has joined #angularjs
[18:12:04] *** maveneagle has quit IRC
[18:12:43] <pushp0p> ^very strange minification behavior
[18:12:43] *** rtpg has quit IRC
[18:13:01] *** lordkryss has quit IRC
[18:13:34] <pushp0p> oh ok it is removing function arguments that aren't being used in the body of the function...
[18:13:42] *** mennea has joined #angularjs
[18:13:44] *** sock_sorcerer is now known as Cixis
[18:13:49] <snapwich> pushp0p: yeah, that's what minifiers do
[18:13:54] *** desmond has quit IRC
[18:14:05] <pushp0p> yeah
[18:14:08] *** desmond has joined #angularjs
[18:14:08] <snapwich> that code should still work
[18:14:09] *** desmond1 has joined #angularjs
[18:14:11] *** screamingbanshee has quit IRC
[18:14:12] <pushp0p> i mean that just doesn't work too well with angular
[18:14:14] <desmond> hello world
[18:14:20] <pushp0p> i'm gonna be turning off minification I guess
[18:14:30] *** MANCHUCK has quit IRC
[18:14:30] *** jae has joined #angularjs
[18:14:46] *** ineedarobot has quit IRC
[18:14:50] *** tigrang has joined #angularjs
[18:15:24] *** InezK is now known as InezK_away
[18:15:56] *** BahamutWC|Work has joined #angularjs
[18:16:00] *** tangorri has joined #angularjs
[18:16:07] *** jae is now known as Jae
[18:16:24] *** briantrice has quit IRC
[18:16:39] <Dan__> where am i supposed to store state with Angular? i've heard 'use a service', but i can't find an example that does that
[18:16:40] *** mrogne is now known as mrogne_afk
[18:16:42] *** rtpg has joined #angularjs
[18:16:44] *** Natsu- has quit IRC
[18:16:51] *** moritzs has joined #angularjs
[18:17:12] *** mrogne_afk has quit IRC
[18:17:33] <Dan__> i'm trying to make a wizard
[18:17:48] *** Felishia has joined #angularjs
[18:17:53] <Felishia> yay! :3
[18:18:16] *** eutheria has joined #angularjs
[18:18:31] <Felishia> I'm creating a web page, and I need the info that is shown to be always up to date
[18:18:31] *** storkme has left #angularjs
[18:18:34] <Gho5t> snapwich: interesting thanks
[18:18:56] <Felishia> mostly the database information that is shown
[18:19:04] <visionary___> so is that a common issue with trying to handle a 401 response?
[18:19:06] * Felishia is a newbie
[18:19:20] <Felishia> it's my first time using angular too
[18:19:45] <Felishia> so if someone else puts some data inside the database
[18:19:49] *** jobelenus_ has joined #angularjs
[18:19:53] <Felishia> the webpage also gets update without needing to reload
[18:20:17] *** intellix has quit IRC
[18:20:29] *** jobelenus has quit IRC
[18:20:29] *** jobelenus_ is now known as jobelenus
[18:20:51] *** the_fog has quit IRC
[18:20:53] <Dan__> Felishia: sounds like a job for Meteor
[18:20:54] *** startupality has joined #angularjs
[18:20:57] *** DrMabuse has quit IRC
[18:20:59] *** Hounddog has quit IRC
[18:21:03] <Felishia> Dan__, what?
[18:21:09] *** shaym has quit IRC
[18:21:15] <Felishia> what's Meteor? some sort of framework?
[18:21:19] *** Armern has joined #angularjs
[18:21:24] *** Cixis is now known as stark_contrast
[18:21:29] <wafflejock> yeah MeteorJS
[18:21:38] <Dan__> i'm a newb. i saw the meteor promo video and what you're describing sounds a little like that
[18:21:45] *** subnl2 has quit IRC
[18:21:48] <Dan__> it's an alternative to angular
[18:22:05] *** gkaplan has quit IRC
[18:22:28] *** SpearThruster has quit IRC
[18:22:31] <Felishia> Well I just want to keep my data up to date without reloading
[18:22:41] *** gkap has joined #angularjs
[18:22:47] <wafflejock> visionary___: you can do this with httpInterceptors so when a 401 occurs it redirects to a login page or modal
[18:22:58]
<Armern> Hi guys! I think I may have found a bug in Angular. Adding an invalid date to a deep watched array makes angular throw a $rootScope:infdig error. Am I doing something wrong or did I really discover an issue? See also: http://plnkr.co/edit/lMYTGj?p=preview
[18:23:05] <BahamutWC|Work> Meteor is a full stack framework built around data syncing
[18:23:17] <wafflejock> Felishia: you can use Firebase.io to have a "backend" that will always stay up to date
[18:23:22] *** iateadonut has joined #angularjs
[18:23:27] *** hychen has quit IRC
[18:23:29] <BahamutWC|Work> I’m personally not a fan of Meteor
[18:23:34] <wafflejock> Felishia: typically this is just done with roundtrips to post/fetch new data but you can also use socket.io
[18:23:35] <Felishia> wafflejock, educate me.
[18:23:49] *** InezK_away is now known as InezK
[18:24:46] *** night-owl2 has joined #angularjs
[18:24:51] *** night-owl2 has quit IRC
[18:24:56] *** \du has quit IRC
[18:25:03] <BahamutWC|Work> websockets lets you communicate between a backend and browser without having to open up a new connection each time (which is typically done with an ajax request)
[18:25:07] <Felishia> wafflejock, I'm already reading about firebase
[18:25:19] *** TorpedoSkyline has quit IRC
[18:25:20] *** Joshee has joined #angularjs
[18:25:25] *** night-owl2 has joined #angularjs
[18:25:27] <Felishia> And websockets?
[18:25:28] *** night-owl2 has quit IRC
[18:25:29] *** subnl2 has joined #angularjs
[18:25:30] *** mspier_off is now known as mspier
[18:25:31] <wafflejock> Felishia: Angular is quite a bit to take in by itself so it's usually best to just start off doing one of the basic tutorials so you get the major concepts then start mixign this stuff in... if you get stuck use the plnkr link in the IRC chat show what you're trying as best you can and share the link
[18:26:10] *** MacWinner has joined #angularjs
[18:26:31] *** InezK is now known as InezK_away
[18:26:38] <Felishia> wafflejock, well I already read a tutorial book, but like anything it only has the basics
[18:26:52] *** gkap has quit IRC
[18:26:54] <Felishia> however the thing is that I have no internet at home and I must download all the necessary stuff now
[18:27:00] <wafflejock> Felishia: well all internet communication really uses "socket" based connections, a socket is just a port number+an IP basically, usually with HTTP requests you open the connection/socket and do the communication then close the socket (get rid of the buffer close the connection) with web sockets or socket.io stuff it just keeps that connection open so you can keep pushing/listeneing for data
[18:27:17] *** rho has joined #angularjs
[18:27:17] *** rho has joined #angularjs
[18:27:32] *** aendrew has quit IRC
[18:27:50] *** sonofdirt has joined #angularjs
[18:27:51] *** klaut has quit IRC
[18:28:02] *** itsmeandrewd has joined #angularjs
[18:28:11] *** MANCHUCK__ has joined #angularjs
[18:28:16] <stark_contrast> well
[18:28:30] <stark_contrast> that's not 100% true
[18:28:34] <stark_contrast> a socket could be a unix socket
[18:28:38] <wafflejock> okay
[18:28:40] *** blueadept has joined #angularjs
[18:28:40] *** blueadept has joined #angularjs
[18:28:43] * stark_contrast runs
[18:28:44] <wafflejock> I knew there would be some edge cases
[18:28:48] <wafflejock> it's a good point
[18:28:53] *** arabot has joined #angularjs
[18:29:01] *** arabot has quit IRC
[18:29:05] <stark_contrast> as far as http is concerned though, you're correct
[18:29:08] *** sharondio has quit IRC
[18:29:08] *** seydoggy has quit IRC
[18:29:15] <wafflejock> but when I learned about TCP/IP and UDP and stuff so just learned about using sockets with ports/IPs
[18:29:30] <Felishia> wafflejock, I see that socket.io seems a good one, at least this doesn't seem like I have to pay
[18:29:32] *** avens_ has quit IRC
[18:29:38] *** sharondio has joined #angularjs
[18:29:43] <wafflejock> Felishia: yeah but you have to run the server side stuff then
[18:29:45] *** seydoggy has joined #angularjs
[18:29:50] <wafflejock> firebase you're paying to avoid that I think
[18:29:52] <stark_contrast> last i heard, socket.io is not a good websockets library, but i've never used it
[18:29:56] *** Click66 has quit IRC
[18:29:59] *** trinode has joined #angularjs
[18:30:07] <wafflejock> yup full disclosure me neither, just talking in general terms
[18:30:07] *** night-owl2 has joined #angularjs
[18:30:13] *** stark_contrast is now known as SockSorcerer
[18:30:25] <Felishia> wafflejock, what's the "server side stuff"?
[18:30:32] *** Click66 has joined #angularjs
[18:30:35] *** aendrew has joined #angularjs
[18:30:37] *** night-owl2 has joined #angularjs
[18:30:42] *** MANCHUCK_ has quit IRC
[18:31:06] *** trave has quit IRC
[18:31:14] <wafflejock> Felishia: whatever you choose, but node.js or Java or something that you're connecting to, most people here use Node I think... I personally still use PHP but for socket based things that probably wouldn't work out since PHP just runs then closes
[18:31:20] *** Dimlock has quit IRC
[18:31:30] *** subnl2 has quit IRC
[18:32:03] *** stirling_ has quit IRC
[18:32:07] <Felishia> wafflejock, the server runs JSP... so it's java... but what about node?
[18:32:19] *** AngularUI has joined #angularjs
[18:32:20]
<AngularUI> [ng-grid] Zacharias3690 opened pull request #1324: add on finish render directive (master...3.0-finish-render-event) http://git.io/FFzCXw
[18:32:20] *** AngularUI has left #angularjs
[18:32:39] *** mven_ has joined #angularjs
[18:32:47] *** kaeku has quit IRC
[18:33:32] *** stirlingw has joined #angularjs
[18:33:38] *** hannesvdvreken has joined #angularjs
[18:33:40] <SockSorcerer> php or .net is where it's at
[18:34:09] * Felishia reads
[18:34:10] *** sharondio has quit IRC
[18:34:11] *** seydoggy has quit IRC
[18:34:47] *** Click66 has quit IRC
[18:35:18] *** teeray has quit IRC
[18:35:47] *** ineedarobot has joined #angularjs
[18:35:51] *** plitzenberger has joined #angularjs
[18:36:00] *** MANCHUCK__ is now known as MANCHUCK
[18:36:45] <Felishia> seems a bit complicated
[18:36:53] <Felishia> and every example is different
[18:36:57] *** cigarshark has joined #angularjs
[18:37:10] *** rtpg has quit IRC
[18:37:16] *** ineedarobot has quit IRC
[18:37:49] <wafflejock> yeah didn't read it myself and there are definitely lots of ways you can approach problems which can sometimes lead to more confusion but just get started on something you can play with and learn by trying things out
[18:37:50] <caitp> does socket.io even have a websockets transport?
[18:37:58] *** _tpavel has quit IRC
[18:38:04] <caitp> you don't really need websockets for a chat application
[18:38:21] <BahamutWC|Work> socket.io uses websockets and flash as a fallback
[18:38:24] *** hannesvdvreken has quit IRC
[18:38:31] <BahamutWC|Work> and ajax as an extreme fallback
[18:38:33] <caitp> I'm pretty sure it doesn't use flash as a fallback
[18:38:36] <caitp> it uses xhr
[18:38:42] <BahamutWC|Work> did they change that?
[18:38:50] <caitp> i'd be surprised if it ever used flash for that
[18:39:00] <Felishia> well I just want something like...
[18:39:03] <caitp> since xhr has been around for aaaages
[18:39:13] <Felishia> var databasedata = {... some dict ... }
[18:39:16] *** Bingo has joined #angularjs
[18:39:27] <Felishia> then I populate that data with angular.
[18:39:44] <BahamutWC|Work> I seem to remember it used to doing so
[18:39:55] <SockSorcerer> BahamutWC|Work: ajax is a less extreme fallback than flash?
[18:39:56] <BahamutWC|Work> maybe almost 2 years ago
[18:39:57] <Felishia> and that data is what I need to have updated
[18:39:58] <SockSorcerer> consider me amused
[18:40:04] *** Armern has quit IRC
[18:40:12] <BahamutWC|Work> SockSorcerer: huh?
[18:40:13] <nickeddy> lol php or .net is where it's at? what
[18:40:14] <Bingo> Hey all, I have been building a single page app using angular and currently if the user clicks back in their browser, it goes back to the previous page outside of my app, and i'd actually like various UI states to be triggered when clicking back, instead.
[18:40:17] <Felishia> that data comes from a MySQL database
[18:40:18] <caitp> i don't think that's what he meant :p
[18:40:46] <wafflejock> Bingo: history should generally work out of the box if you're using ngRoute or ui-router
[18:41:26] <SockSorcerer> BahamutWC|Work: considering the wide-spread support for ajax, and the less-wide-spread support for flash, it's weird to me that they would use flash as a fallback before ajax
[18:41:39] <SockSorcerer> but as caitp said, maybe they don't
[18:41:45] <BahamutWC|Work> caitp: yup, as I remembered - at least at 0.6, socket.io did used to use flash
[18:41:46] <Bingo> I've been looking at UI Router, but the trouble i have, is that this seems to require templates to be stored in files... my templates are in a database, so I don;t have a template URL for them
[18:41:48] *** ascarter has joined #angularjs
[18:42:09] <wafflejock> Bingo: you can populate the $templateCache using $templateCache.put
[18:42:11] *** mehlah has joined #angularjs
[18:42:41] <Bingo> thanks wafflejock, i'll look into that... is templateCache a feature of UI Router specifically/
[18:42:43] *** DrShoggoth has joined #angularjs
[18:42:48] <Dan__> how do i display a list of things one can choose and bind the chosen ones to an array in my model?
[18:43:02] <Felishia> uh well I'm leaving thanks! :3
[18:43:08] *** Felishia has quit IRC
[18:43:15] <wafflejock> Bingo: nope just Angular business so when it goes to load a template it will load from the templateCache before making a request
[18:43:36] <Bingo> ok great thanks i'll look into that.
[18:43:47] *** rhp has joined #angularjs
[18:43:56] *** lsiv568 has quit IRC
[18:44:22] <wafflejock> SockSorcerer: Flash was supported and distributed to most of the pre-mobile web
[18:44:42] *** MANCHUCK_ has joined #angularjs
[18:44:42] *** trave has joined #angularjs
[18:44:50] <wafflejock> before HTML5 video YouTube was all Flash and everyone uses YouTube
[18:45:12] <caitp> at great cost (see: pepper, shumway)
[18:45:13] <wafflejock> and pretty much all mobile browsers probably have newer socket support I imagine
[18:45:33] <caitp> most people don't need websockets, though
[18:45:35] *** tschundeee has joined #angularjs
[18:45:40] <wafflejock> agree
[18:45:41] <caitp> like, they just don't
[18:45:43] <wafflejock> I haven't
[18:45:59] *** lsiv568 has joined #angularjs
[18:46:00] <wafflejock> in the cases we need "NRT" polling has been fine
[18:46:01] <caitp> people trying to do HTTP over websockets *cringe*
[18:46:07] <Bingo> just to clarify, can I wrap this: <script type="text/ng-template" id="templateId.html"></script> around my various bits of code, including container divs which have data-ng-controller="blahblah" on them?
[18:46:19] *** seydoggy has joined #angularjs
[18:46:30] *** Nizumzen has joined #angularjs
[18:46:35] *** mikedevita has joined #angularjs
[18:46:55] <wafflejock> Bingo: nope no need to do that... that is one way to also populate the templates from within the index.html file or override ones that would normally be loaded with a request
[18:46:59] <BahamutWC|Work> how expensive are websockets vs. ajax?
[18:47:10] *** Methylated has quit IRC
[18:47:17] *** MANCHUCK has quit IRC
[18:47:38] *** dob__ has quit IRC
[18:48:04] *** dob_ has joined #angularjs
[18:48:27] *** ascarter has quit IRC
[18:48:31] *** citizen-stig has joined #angularjs
[18:49:14] <Bingo> wafflejock, that's my problem really, I don't have any URL's to my templates - i just have a page of code where different bits of "template" data was given to me in php variables
[18:49:33] *** roolo has quit IRC
[18:50:09] *** krawek has joined #angularjs
[18:50:09] <wafflejock> Bingo: right but with put you just supply a URL and a string to load when the angular app is trying to fetch the file with the name/path you specify as the first argument
[18:50:19] *** ascarter has joined #angularjs
[18:50:31] *** josh-k has quit IRC
[18:50:45] *** slainer68 has quit IRC
[18:50:49] <wafflejock> $templateCache.put('what/I/call/the/template.html', '<div>This part could be loaded from a DB or whatever</div>');
[18:50:56] *** Aswebb has quit IRC
[18:51:15] <BahamutWC|Work> $templateCache is a great invention
[18:51:23] <wafflejock> Meanwhile in gotham.... templateUrl: 'what/I/call/the/template.html'
[18:51:41] *** patrickarlt has joined #angularjs
[18:51:48] *** mfunkie has joined #angularjs
[18:51:54] *** Joulse has quit IRC
[18:51:55] <Bingo> I see what you mean there, but the trouble I see is that my templates are made up of loads of parsed PHP variables and stuff like that
[18:52:02] <Bingo> so i think the <script> way would work for me
[18:52:10] *** InezK_away is now known as InezK
[18:52:15] *** plitzenberger has quit IRC
[18:52:23] <Bingo> basically in my javascript I don't have access to those php variables
[18:52:35] <wafflejock> Bingo: yup whatever works just trying to get across what I was saying initially
[18:52:50] <Bingo> Thanks again, you've been a great help
[18:52:54] <wafflejock> yup np
[18:53:09] <BahamutWC|Work> Bingo: you should avoid mixing server-side templating with client-side templating much
[18:53:48] *** visionary___ has quit IRC
[18:54:30] *** davi has quit IRC
[18:54:54] *** visionary__ has joined #angularjs
[18:55:17] *** LoveAndHappiness has quit IRC
[18:55:19] *** kemm0_ has quit IRC
[18:55:25] *** kemm0__ has joined #angularjs
[18:56:03] *** juanlas has quit IRC
[18:56:05] *** slainer68 has joined #angularjs
[18:56:08] <Bingo> MahamutWC|Work - Basically the system i'm working with is all databased for storing what are called "components" and these components contain HTML and output PHP variables. They can be over-ridden on a per-shop basis so different shops can change wording of things and change layout etc.
[18:56:48] *** TehShrike|Work has left #angularjs
[18:56:58] <Bingo> the angular stuff is hopefully going to remain as a standard, not over-ridden by any particular shop
[18:57:32] *** rtpg has joined #angularjs
[18:58:01] *** rtpg has quit IRC
[18:58:10] <Bingo> so hopefully if this all works out, my UI Router code will be able to load in and swap out whatever views the various shops have, and just work
[18:58:16] *** subnl has joined #angularjs
[18:58:19] *** mven_ has quit IRC
[18:59:14] <Bingo> probably haven't explained that well at all... in my head this should work... time will tell... thanks all
[18:59:20] *** Bingo has quit IRC
[18:59:38] *** mityaz has joined #angularjs
[19:00:03] *** joshbrw has quit IRC
[19:00:10] *** patricka_ has joined #angularjs
[19:00:26] *** shinnya has quit IRC
[19:00:29] *** sneakertack has quit IRC
[19:00:41] *** juanlas has joined #angularjs
[19:00:48] *** monk12 has joined #angularjs
[19:00:51] *** eamonn_ has quit IRC
[19:01:29] *** lordkryss_ is now known as lordkryss
[19:01:33] *** hell_razer has joined #angularjs
[19:01:37] <monk12> hey guys, just curious... looking at Protractor/Jasmine tests now... How can you setup a test that searches the page for certain regex text?
[19:02:03] <monk12> wasn't sure if there already was some function to test that or needs to return the entire DOM text somehow and do test via that way.
[19:02:04] *** wallerdev has joined #angularjs
[19:02:10] *** nanoyak has joined #angularjs
[19:02:45] <SockSorcerer> wafflejock: yea, but flash has always been iffy on mobile (and now nixed), and ajax has always been more widely supported than flash
[19:02:50] *** mven_ has joined #angularjs
[19:03:21] <SockSorcerer> it's just an interesting decision to me, but thankfully that's historical now
[19:03:41] *** zfogg has joined #angularjs
[19:04:10] *** patrickarlt has quit IRC
[19:04:23] *** krawek has quit IRC
[19:04:24] <SockSorcerer> one of those things where'd i'd probably get huffy with my coworkers and say flash is dumb, fuck that
[19:04:28] <SockSorcerer> where*
[19:04:28] *** phuh has quit IRC
[19:04:43] *** visionary___ has joined #angularjs
[19:04:52] *** phuh has joined #angularjs
[19:05:25] *** holymac has joined #angularjs
[19:05:46] *** mikaeldice_ has quit IRC
[19:05:54] *** toastynerd has quit IRC
[19:05:54] *** visionary__ has quit IRC
[19:06:08] *** avens has joined #angularjs
[19:06:15] <Alina-malina> tell me what i am doing wrong there?
[19:06:24] *** nbarley is now known as gjvc
[19:06:25] *** holymac has quit IRC
[19:06:35] *** Nek has joined #angularjs
[19:07:04] *** SomeKittens has joined #angularjs
[19:07:11] *** holymac has joined #angularjs
[19:07:36] *** mikaeldice has joined #angularjs
[19:07:37] *** the-erm has quit IRC
[19:07:41] *** UniBot has quit IRC
[19:07:46] *** whunt has joined #angularjs
[19:07:56] *** kppullin has quit IRC
[19:08:30] *** arntempelgibbarn has quit IRC
[19:08:40] *** hmr has quit IRC
[19:08:47] *** eamonn has joined #angularjs
[19:09:08] *** kppullin has joined #angularjs
[19:09:11] *** KernelCurry has joined #angularjs
[19:09:28] *** bertrandk has quit IRC
[19:09:35] *** Schtive has quit IRC
[19:09:35] *** zfogg_ has joined #angularjs
[19:09:41] <SockSorcerer> Alina-malina: gonna need way more information than that to help you
[19:09:42] *** the-erm has joined #angularjs
[19:09:42] *** bengilli_ has quit IRC
[19:09:53] <wafflejock> SockSorcerer: for sure... I used to do a lot of Flex/AS3 programming (deployed on Flash VM) so I know all about it
[19:09:54] <icfantv> Alina-malina: you're going to need to be a little more specific
[19:09:59] <icfantv> if you want some help.
[19:10:20] <icfantv> socksorcerer: damn, you beat me too it
[19:10:31] <SockSorcerer> hehe
[19:10:33] *** zfogg has quit IRC
[19:10:43] <Alina-malina> ok lemme paste it
[19:10:54] *** jdangler has joined #angularjs
[19:11:01] <icfantv> pastebin or equiv, please
[19:11:03] *** zwacky has quit IRC
[19:11:48] <wafflejock> SockSorcerer: the mobile Flash was never really great on Android and even AIR is pretty dern slow and hard to deal with various devices still so not really worth the effort and complete lack of support on iOS from the get go then Android threw in the towel for supporting Flash with 4.x I think
[19:12:19] *** slainer68 has quit IRC
[19:12:41] *** eutheria has left #angularjs
[19:12:43] <icfantv> Alina-malina: are you seeing anything in your console? logging messages, J/S errors?
[19:12:52] <Alina-malina> reflow: 0ms
[19:12:54] <Alina-malina> only this
[19:13:03] <Alina-malina> and nothing like hell
[19:13:16] *** whitebook has quit IRC
[19:13:44] *** krawek has joined #angularjs
[19:13:44] *** elux has quit IRC
[19:13:57] <icfantv> Alina-malina: do you see anything in your server side log?
[19:14:14] <wafflejock> Alina-malina: missing ng-app I think?
[19:14:15] <icfantv> anything to indicate a network request was going out? what about the network tab in chrome?
[19:14:24] <Alina-malina> no errors
[19:14:27] <Alina-malina> in console
[19:14:54] <icfantv> wafflejock: good catch….unless it's bootstrapped somehow
[19:15:03] <icfantv> that's how we do it
[19:15:12] *** CodeFriar has joined #angularjs
[19:15:32] <Alina-malina> what?
[19:15:43] *** uf6667 has joined #angularjs
[19:15:47] <Alina-malina> no nothing
[19:15:47] <wafflejock> Alina-malina: you need to either have ng-app somewhere or bootstrap the app in JS
[19:15:54] *** pskrz has quit IRC
[19:16:05] <Alina-malina> i paste the page
[19:16:14] <Alina-malina> i need bootstrap for this to wokr?
[19:16:20] <wafflejock> Alina-malina: see the lin
[19:16:22] <wafflejock> link*
[19:16:22] *** pskrz has joined #angularjs
[19:16:33] <icfantv> Alina-malina: either on <html> or <body> or the link wafflejock just posted, you need ng-app="name_of_app"
[19:16:34] *** arizzo has joined #angularjs
[19:16:47] <Alina-malina> ok let me do this
[19:16:49] <icfantv> Alina-malina: not, not Boostrap CSS
[19:16:56] <wafflejock> right that's confusing
[19:17:00] <wafflejock> if you google it comes up first
[19:17:05] <wafflejock> ui-bootstrap that is
[19:17:16] *** bertrandk has joined #angularjs
[19:17:29] <wafflejock> but you just need the link above that's what we're talking about or like icfantv said add ng-app directive on the body or html tag
[19:17:51] <icfantv> either ng-app or: angular.element(document).ready(function () {
[19:17:51] <icfantv> angular.bootstrap(document, [app.name]);
[19:17:52] <icfantv> });
[19:18:10] <Alina-malina> erm
[19:18:11] <Alina-malina> wait
[19:18:14] <Alina-malina> just a moment
[19:18:17] *** avens has quit IRC
[19:18:28] *** avens has joined #angularjs
[19:18:40] <Alina-malina> Error: [$injector:modulerr] Failed to instantiate module myApp due to:
[19:19:32] *** bLu__ has joined #angularjs
[19:19:53] *** sigurding has quit IRC
[19:19:56] *** Dan__ has quit IRC
[19:20:04] *** Ericx2x has joined #angularjs
[19:20:07] *** MuffinMan` has joined #angularjs
[19:20:23] *** mspier is now known as mspier_off
[19:20:47] *** heidi has joined #angularjs
[19:20:48] *** MANCHUCK__ has joined #angularjs
[19:20:58] *** arizzo has quit IRC
[19:22:10] *** OddDuck has joined #angularjs
[19:22:17] *** mmitchel_ has joined #angularjs
[19:22:18] *** screamingbanshee has joined #angularjs
[19:22:42] *** vintik has joined #angularjs
[19:22:42] *** avens has quit IRC
[19:23:15] *** MacWinner has quit IRC
[19:23:20] *** aendrew has quit IRC
[19:23:30] *** matpb has quit IRC
[19:23:31] *** Sebastien-L has quit IRC
[19:23:37] *** frickettz has joined #angularjs
[19:23:40] *** AlexZanf has quit IRC
[19:23:49] *** seydoggy has quit IRC
[19:23:52] *** MANCHUCK_ has quit IRC
[19:24:07] *** lordkryss has quit IRC
[19:24:11] <icfantv> Alina-malina: pastbin seems to be suffering from twitter-syndrome. can't access it at the moment.
[19:24:21] *** seydoggy has joined #angularjs
[19:24:36] *** Ericx2x has quit IRC
[19:25:06] <Alina-malina> twitter-syndrome?
[19:25:07] <icfantv> Alina-malina: do you need both the shim AND the non-shim file?
[19:25:18] <Alina-malina> i need to make this work somehow:)
[19:25:23] <icfantv> Alina-malina: shim sounds like it's for requireJS
[19:25:24] *** sharondio has joined #angularjs
[19:25:43] *** whitebook has joined #angularjs
[19:26:05] *** cspra85 has quit IRC
[19:26:38] <icfantv> it also appears your JS files are not in the same order as his sample
[19:26:40] *** pushpak has joined #angularjs
[19:26:51] <Alina-malina> should i take it away?
[19:26:54] <Alina-malina> let me try without it
[19:27:04] <icfantv> ugh
[19:27:05] <icfantv> no
[19:27:07] <icfantv> RTFM
[19:27:19] *** mfunkie has quit IRC
[19:27:28] <Alina-malina> erm i remove it and it begin to work
[19:27:29] <Alina-malina> but with errors
[19:27:29] <icfantv> read the Usage section of the API you are trying to use
[19:27:31] *** Aliks_ has joined #angularjs
[19:27:34] <Alina-malina> so i put it back
[19:27:35] <Alina-malina> :)
[19:27:47] *** mikaeldice has quit IRC
[19:27:50] *** mspier_off is now known as mspier
[19:28:04] <Alina-malina> it says the following:
[19:28:05] <Alina-malina> Expected 'none' or URL but found 'alpha('. Error in parsing value for 'filter'. Declaration dropped.
[19:28:22] *** squeakytoy has joined #angularjs
[19:28:45] *** InezK is now known as InezK_away
[19:28:52] *** seydoggy has quit IRC
[19:28:58] *** jonnybro has joined #angularjs
[19:29:12] <icfantv> alina-malina: before i can help you, you need to read the Usage section on the link i pasted above. it's hard to help you fix something when you haven't followed the directions.
[19:29:36] *** InezK_away is now known as InezK
[19:29:43] <icfantv> it looks like you copied the sample but then changed stuff
[19:29:43] *** mikaeldice has joined #angularjs
[19:29:43] <Alina-malina> looks like i make it working
[19:29:44] <Alina-malina> hmm
[19:29:51] <Alina-malina> yes
[19:30:11] *** Ilyas has joined #angularjs
[19:30:14] *** apetro_ has joined #angularjs
[19:30:15] <Alina-malina> i add this: ng-app="myApp" to here: <div ng-controller="MyCtrl" ng-app="myApp">
[19:30:31] *** volk_ has quit IRC
[19:30:38] <icfantv> yes, you need ng-app - as we said earlier
[19:30:47] <icfantv> not necessarily on your controller div
[19:30:56] <icfantv> you probably want it on your <body> tag
[19:31:03] <icfantv> but for a sample app, it doesn't matter
[19:31:04] <Alina-malina> yes but when i put that there it did not working, this thing did not start working utnil i remove the shim and put it back :-/
[19:31:07] *** startupality has quit IRC
[19:31:16] <Alina-malina> anyways thank you, now time to handle the php side to "recieve" the file
[19:31:26] *** dreb has joined #angularjs
[19:31:26] <icfantv> ok
[19:31:33] <icfantv> good luck
[19:31:41] *** holymac has quit IRC
[19:31:49] *** daniele9821 has joined #angularjs
[19:31:50] *** whunt has quit IRC
[19:31:57] *** InezK is now known as InezK_away
[19:32:05] *** holymac has joined #angularjs
[19:32:27] *** InezK_away is now known as InezK
[19:32:40] *** mfunkie has joined #angularjs
[19:33:09] <daniele9821> Hi all sameone use protractor for e2e tests?
[19:33:54] *** teeray has joined #angularjs
[19:34:00] *** endash has joined #angularjs
[19:34:22] *** desmond has quit IRC
[19:34:22] *** endash has quit IRC
[19:34:28] *** apetro_ has quit IRC
[19:34:49] *** joshontheweb has quit IRC
[19:35:08] *** InezK is now known as InezK_away
[19:35:52] *** codedungeon has joined #angularjs
[19:36:05] *** jareddlc has joined #angularjs
[19:36:07] *** SpearThruster has joined #angularjs
[19:37:05] *** mven_ has quit IRC
[19:37:12] *** negval has quit IRC
[19:37:22] *** daniele9821 has quit IRC
[19:37:56] *** MacWinner has joined #angularjs
[19:38:07] *** ededagic has joined #angularjs
[19:38:23] *** shackleford has quit IRC
[19:39:19] *** daslicht has quit IRC
[19:39:27] *** xat- is now known as xAt
[19:39:30] *** eamonn has joined #angularjs
[19:39:39] *** whunt has joined #angularjs
[19:39:46] *** desmond has joined #angularjs
[19:40:10] *** bc has joined #angularjs
[19:41:02] *** thedodd has quit IRC
[19:41:03] *** lsiv568 has quit IRC
[19:41:05] *** Xethron has quit IRC
[19:41:10] <bc> to make this ng-click work (this is in a directive), should I use $compile or? -> $element.append('<button class="btn" data-ng-click="resetColors()">Reset Defaults</button>');
[19:41:23] *** InezK_away is now known as InezK
[19:41:44] *** Drako_ has joined #angularjs
[19:41:44] <pswizzle> Hey guys, if I have a third-party directive that accepts an attribute (eg: scope: {foo: '"@"}), do you know how I can pass a dynamic string in?
[19:42:12] *** nanoyak has quit IRC
[19:42:40] *** shackleford has joined #angularjs
[19:43:12] *** mspier is now known as mspier_off
[19:43:28] *** sigurding has joined #angularjs
[19:44:12] *** eamonn has quit IRC
[19:44:23] *** desmond has quit IRC
[19:44:43] *** panchisco has joined #angularjs
[19:45:12] *** Drako__ has joined #angularjs
[19:45:14] *** tschundeee has quit IRC
[19:45:16] *** screamingbanshee has quit IRC
[19:45:20] *** guilbep has quit IRC
[19:45:25] *** DrShoggoth has quit IRC
[19:45:37] *** tschundeee has joined #angularjs
[19:45:41] *** AlSquire has quit IRC
[19:46:00] *** Drako_ has quit IRC
[19:46:17] *** karinaOK has joined #angularjs
[19:46:30] *** cthrax has quit IRC
[19:47:08] <Foxandxss> bc: you need to $compile yes
[19:47:17] <Foxandxss> pswizzle: {{ string }}
[19:47:28] <Foxandxss> foo="{{string}}"
[19:47:55] *** icfantv has quit IRC
[19:48:04] *** icfantv has joined #angularjs
[19:48:06] <pswizzle> @Foxandxss, I thought I tried that; lemme check again
[19:48:06] *** longlong has joined #angularjs
[19:48:12] *** zeroquake has quit IRC
[19:48:39] *** longlong has quit IRC
[19:48:53] *** trusktr has joined #angularjs
[19:49:07] <trusktr> Hello all
[19:49:34] <trusktr> Does the newer versions of Angular automatically bootstrap when the scripts are at the footer of the page?
[19:49:50] <trusktr> DO
[19:49:57] <Foxandxss> if you have the ng-app, yeah
[19:50:23] *** visionary___ has quit IRC
[19:50:29] *** jamesshijie has quit IRC
[19:51:23] *** bphogan_afk is now known as bphogan
[19:51:56] *** linojon has joined #angularjs
[19:52:33] <trusktr> Foxandxss: Last I used Angularjs like 3 months ago if the scripts were at the bottom I had to use .bootstrap() manually.
[19:52:48] <trusktr> hmmmm
[19:52:50] *** nanoyak has joined #angularjs
[19:52:54] *** naxs has joined #angularjs
[19:53:32] <schuran_> Is there a way I can filter options to bind once the main item was selected?
[19:53:53] *** matpb has joined #angularjs
[19:54:08] *** mspier_off is now known as mspier
[19:54:09] <BahamutWC|Work> trusktr: that’s not the case, you can use ng-app with the scripts at the bottom of the page
[19:54:16] *** Gho5t has quit IRC
[19:54:26] *** matpb has quit IRC
[19:54:33] *** matpb has joined #angularjs
[19:54:44] <BahamutWC|Work> manual bootstrapping is preferable though, you have more control over your app
[19:54:48] *** stevvooe has joined #angularjs
[19:55:06] *** whitebook has quit IRC
[19:55:28] *** dob__ has joined #angularjs
[19:55:37] *** AlexZanf has joined #angularjs
[19:55:45] *** seydoggy has joined #angularjs
[19:56:17] *** krawek has quit IRC
[19:56:19] *** Schtive has joined #angularjs
[19:56:38] *** mary5030 has quit IRC
[19:57:00] *** naxs has quit IRC
[19:57:45] *** Nizumzen has quit IRC
[19:58:01] *** Sebastien-L has joined #angularjs
[19:58:10] *** BahamutWC|Work has quit IRC
[19:58:13] *** ckboii89 has quit IRC
[19:58:34] <SockSorcerer> adobe would be smart to support exporting flash things to html and javascript
[19:59:07] *** richiebkr has joined #angularjs
[19:59:21] <tangorri> they do
[19:59:23] *** dob_ has quit IRC
[19:59:27] *** tangorri has quit IRC
[19:59:53] *** dcherman has quit IRC
[20:00:04] *** dob__ has quit IRC
[20:00:46] *** hippch has joined #angularjs
[20:00:53] *** jamesshijie has joined #angularjs
[20:00:58] *** ccohn has joined #angularjs
[20:01:27] *** nanoyak has quit IRC
[20:01:32] *** siddart has quit IRC
[20:01:37] *** vbabiy has quit IRC
[20:01:43] *** siddart has joined #angularjs
[20:01:49] *** cthrax has joined #angularjs
[20:02:02] *** mary5030 has joined #angularjs
[20:02:15] *** nanoyak has joined #angularjs
[20:02:46] *** nanoyak has quit IRC
[20:02:48] *** darrin has quit IRC
[20:03:11] *** darrin has joined #angularjs
[20:03:17] *** nanoyak has joined #angularjs
[20:03:43] *** darrin has quit IRC
[20:03:47] *** bphogan is now known as bphogan_afk
[20:04:02] *** darrin has joined #angularjs
[20:04:08] *** whitebook has joined #angularjs
[20:04:19] *** MANCHUCK__ has quit IRC
[20:04:25] *** stevvooe_ has joined #angularjs
[20:04:27] *** phuh has quit IRC
[20:04:30] *** stevvooe has quit IRC
[20:04:53] *** phuh has joined #angularjs
[20:04:59] *** vbabiy has joined #angularjs
[20:05:03] *** vbabiy has quit IRC
[20:05:42] *** vbabiy has joined #angularjs
[20:05:54] *** vader has quit IRC
[20:05:58] *** htowngangtsa has quit IRC
[20:06:04] *** styles has joined #angularjs
[20:06:04] *** styles has joined #angularjs
[20:06:15] *** Silne30_ has quit IRC
[20:06:33] *** vbabiy has joined #angularjs
[20:06:38] *** vbabiy has quit IRC
[20:06:39] *** Silne30 has joined #angularjs
[20:06:59] *** Cavallari has joined #angularjs
[20:07:05] *** mspier is now known as mspier_off
[20:07:20] *** vbabiy has joined #angularjs
[20:08:27] *** DrMabuse has joined #angularjs
[20:08:31] *** panchisco has quit IRC
[20:08:38] *** SpearThruster has quit IRC
[20:08:46] *** xastey has joined #angularjs
[20:09:06] <snurfery> sup yall
[20:09:22] *** cspra85 has joined #angularjs
[20:09:28] <oniijin_> howdy snurf
[20:09:32] * snurfery waves
[20:09:36] *** lsiv568 has joined #angularjs
[20:09:39] <SockSorcerer> hm. thought i heard something about that. is it actually useful though?
[20:09:44] <trusktr> SockSorcerer: For sure. :)
[20:10:15] <trusktr> SockSorcerer: I meant BahamutWC. hehe
[20:10:25] <trusktr> For sure BahamutWC. :)
[20:10:29] <snurfery> I have to re-take my stupid written driving test in a couple hours. I feel like a teenager,minus the acne
[20:10:46] <trusktr> snurfery: Get it over with so you can drive back to angularjs.
[20:10:46] <snurfery> this is super relevant to angular of course
[20:10:51] <snurfery> =)
[20:11:05] *** pskrz has quit IRC
[20:11:09] <oniijin_> im car shopping
[20:11:10] <oniijin_> bleh
[20:11:13] *** xAt is now known as xat-
[20:11:18] *** jamesshijie has quit IRC
[20:11:21] <snurfery> ooo, similar subject but way more interesting
[20:11:24] *** matpb has quit IRC
[20:11:28] <snurfery> what kind are you looking to get?
[20:11:40] *** panchisco has joined #angularjs
[20:11:45] <oniijin_> right now cla or c250
[20:11:54] <oniijin_> or something totally different
[20:12:02] <oniijin_> ionno it's taking up a lot of time
[20:12:12] * snurfery nods
[20:12:23] <snurfery> that's a pretty sexy car
[20:12:30] <snurfery> surprisingly affordable
[20:13:27] *** BahamutWC|Work has joined #angularjs
[20:14:24] *** evc has joined #angularjs
[20:14:49] <evc> hi everyone, how to remove directive from dom when button clicked?
[20:15:06] *** cthrax has quit IRC
[20:15:45] <oniijin_> prob is my wife wanted to just get a cheap honda or something
[20:15:54] <oniijin_> but was ok with mb if it was a little bit more
[20:15:58] <oniijin_> so ionno
[20:16:27] *** cacts|works has quit IRC
[20:16:38] *** charlesfinley has joined #angularjs
[20:17:05] *** OddDuck` has joined #angularjs
[20:17:05] *** OddDuck has quit IRC
[20:17:09] *** thedodd has joined #angularjs
[20:17:10] <snurfery> I forgot, that's a huge selling point of actually getting married
[20:17:12] *** codedungeon has quit IRC
[20:17:13] <snurfery> shared resources
[20:17:36] * snurfery makes a mental note to get a wifey
[20:17:44] *** mercwithamouth has quit IRC
[20:18:28] <oniijin_> well it's going to replace her dying car, not for me
[20:18:41] *** jamto11 has joined #angularjs
[20:18:46] *** Click66 has joined #angularjs
[20:19:10] *** Ericx2x has joined #angularjs
[20:19:34] *** ededagic has quit IRC
[20:20:08] *** Fire-Dragon-DoL has joined #angularjs
[20:20:26] *** visionary__ has joined #angularjs
[20:20:27] <charlesfinley> snurfery: could you have a look as well? What am i doing wrong?
[20:20:29] *** dreb has quit IRC
[20:20:29] *** ededagic has joined #angularjs
[20:21:18] *** synestry has quit IRC
[20:21:53] *** b1rkh0ff has joined #angularjs
[20:22:10] *** jonnybro has quit IRC
[20:22:38] *** Sauvin has quit IRC
[20:22:49] *** seydoggy has quit IRC
[20:22:53] *** jamto11 has quit IRC
[20:22:58] *** kborchers has quit IRC
[20:22:59] *** kborchers has joined #angularjs
[20:22:59] *** kborchers has joined #angularjs
[20:23:51] *** cthrax has joined #angularjs
[20:23:52] *** Ericx2x has quit IRC
[20:24:27] *** visionary__ has quit IRC
[20:25:25] *** bphogan_afk is now known as bphogan
[20:25:43] *** Guest32576 has joined #angularjs
[20:26:10] *** Cavallari has quit IRC
[20:26:27] *** Cavallari has joined #angularjs
[20:26:42] *** dcherman has joined #angularjs
[20:26:57] *** kodierkroete has joined #angularjs
[20:27:46] *** bLu__ has quit IRC
[20:29:36] *** mercwithamouth has joined #angularjs
[20:30:20] *** patricka_ has quit IRC
[20:30:43] *** Sijdesign has joined #angularjs
[20:30:51] *** dmack has joined #angularjs
[20:30:59] *** nanoyak has quit IRC
[20:31:01] *** ascarter has quit IRC
[20:31:11] *** volk_ has joined #angularjs
[20:31:36] *** evc has quit IRC
[20:31:41] *** s3shs has joined #angularjs
[20:32:34] *** nanoyak has joined #angularjs
[20:33:01] <schuran_> is anyone here able to help me with a filter question. I have 2 drop downlists and I want to have them update if the index changes
[20:33:16] *** DuelShark has joined #angularjs
[20:34:20] *** s3shs has quit IRC
[20:34:27] *** defaultdict has quit IRC
[20:34:47] *** KernelCurry has quit IRC
[20:34:50] *** defaultdict has joined #angularjs
[20:35:01] *** edrocks has joined #angularjs
[20:35:10] <dmack> sure
[20:35:19] <kodierkroete> Hmm maye $scope$watching in your ctrl
[20:35:21] *** mspier_off is now known as mspier
[20:35:26] *** s3shs has joined #angularjs
[20:35:30] <dmack> schuran_: have a link?
[20:35:34] <edrocks> does anyone know what this would be called? "return result ? result.short_name : null;"
[20:35:40] <schuran_> I'm working off a local copy
[20:35:56] <snapwich> edrocks: ternary operator?
[20:36:04] *** Azzurrio has joined #angularjs
[20:36:15] <s3shs> Hello sneaky people.
[20:36:17] <s3shs> edrocks, a ternary operator?
[20:36:19] <s3shs> You should put the expression in parens fo' clarity.
[20:36:21] <edrocks> snapwich: thanks
[20:36:27] *** mccarrontr1ck has quit IRC
[20:36:42] <edrocks> i used something like it in java before i just forgot what it was called
[20:36:58] <s3shs> edrocks, the same can be done in JS with return (result || nil)
[20:37:11] <edrocks> that was js
[20:37:19] <snapwich> well, except he was returning a property of result, not result itself
[20:37:23] *** hell_razer has quit IRC
[20:37:36] <s3shs> (result.short_name || null)
[20:37:47] <wallerdev> thatd throw an exception
[20:37:51] <snapwich> yeah it would
[20:38:48] <s3shs> damn js
[20:39:21] <s3shs> Ok, I have an ng-include. I only want it to display if the user has the correct access. And the check needs to be server-side. Thoughts?
[20:39:22] <wallerdev> yeah needs a feature like return result.?name
[20:39:27] *** clinicalpain has joined #angularjs
[20:39:28] *** mccarrontr1ck has joined #angularjs
[20:39:36] <s3shs> wat?
[20:39:38] <s3shs> No.
[20:39:44] <edrocks> what are you using for server side?
[20:39:45] *** clinicalpain has left #angularjs
[20:39:48] <s3shs> node
[20:39:48] <nickeddy> s3shs: i handle that via a user service
[20:39:56] <snapwich> javascript should be more like perl
[20:40:03] *** eamonn has joined #angularjs
[20:40:10] <nickeddy> request the user's permissions on a page access via something like resolve and voila
[20:40:16] <edrocks> you could use templates i never used it in node before but i think mustache has them for node
[20:40:18] <nickeddy> page = state*
[20:40:31] <nickeddy> no please don't do server side rendering in node
[20:40:37] <s3shs> nickeddy, so ng-include can bind to a URL, right? Perhaps I should make a rest call that checks userLevel and applies the proper URL at runtime. Fair?
[20:40:47] <s3shs> nickeddy, no, I won't do ssr.
[20:40:50] *** hell_razer has joined #angularjs
[20:40:57] <edrocks> s3shs: check that out
[20:41:01] <nickeddy> s3shs: yeah that sounds like that's appropriate
[20:41:03] *** jbolie has joined #angularjs
[20:41:19] <s3shs> edrocks, why would i use mustache for rendering when i have an angular app?
[20:41:23] <nickeddy> ^
[20:41:41] <s3shs> nickeddy, so secret url? But once it's in someone's history someone else can find it.
[20:41:49] <s3shs> (Just thought of that.)
[20:42:09] <edrocks> template could prevent secret url
[20:42:12] <s3shs> Hmm. I need to check the URL and the session on the GET call.
[20:42:15] *** bertrandk has quit IRC
[20:42:16] *** SpearThruster has joined #angularjs
[20:42:26] <s3shs> (To get the call in the first place.)
[20:42:26] <nickeddy> s3shs: no not necessarily. <div ng-if="hasSomePermission()><div ng-include="someTemplate"></div></div> ?
[20:42:40] <edrocks> or you could just check for the user server side and return 2 different angular templates based on if they are logged in/have permission
[20:42:42] <s3shs> nickeddy, that code would all be in the DOM, though.
[20:42:44] <nickeddy> and that hasSomePermission will do a rest call to determine permissions
[20:42:56] <s3shs> You can't put security logic client side.
[20:43:02] <s3shs> It's asking for trouble.
[20:43:11] <edrocks> do you want to prevent unauthorized people from viewing your template?
[20:43:14] <s3shs> Once it's in the client one quick trip in to the debugger will make it do whatever you want.
[20:43:20] <s3shs> ^ edrocks
[20:43:30] <nickeddy> s3shs: what's the template do
[20:43:37] *** ascarter has joined #angularjs
[20:43:40] <s3shs> account management, stuff like that.
[20:43:53] <nickeddy> well all of those endpoints for doing that would be protected too
[20:43:57] <nickeddy> checking for permissions
[20:44:28] <s3shs> nickeddy, yeah. Right now the html loads the management screen, but none of the functions work. I'd rather they not even load in the first place.
[20:44:33] <s3shs> Maybe I'm being paranoid.
[20:44:37] <nickeddy> you are
[20:44:38] <nickeddy> :P
[20:44:46] *** boonkerz has quit IRC
[20:44:59] *** eamonn has quit IRC
[20:45:15] <nickeddy> i mean you could do some state change management by not even letting them go to the state if they don't have permission to go to that state
[20:45:16] *** codedungeon has joined #angularjs
[20:45:20] <nickeddy> but that ends up being a bitch
[20:45:34] *** eperez has joined #angularjs
[20:46:01] <edrocks> what could you be hiding on this page anyways? you wouldnt be able to anything with it anyways if you deny whatever rest calls they would make on that page if they arent authenticated
[20:46:06] <s3shs> So much for a clever one-line solution. :-)
[20:46:10] *** screamingbanshee has joined #angularjs
[20:46:21] <s3shs> edrocks, just management.
[20:46:24] <nickeddy> s3shs: permissions are my least favorite thing to deal with client side
[20:46:28] *** chrisbirk has joined #angularjs
[20:46:42] <s3shs> I think I can tap existing code server-side to handle this.
[20:46:55] <edrocks> just block or redirect the template server side
[20:46:56] <s3shs> And I need a nap.
[20:47:00] *** stevvooe_ has quit IRC
[20:47:04] <kodierkroete> I would go with the server side rendering. You safe the usersome traffic and do not have to implement the security side code on client and server ( for that include)
[20:47:05] <s3shs> edrocks, yeah.
[20:47:43] <s3shs> kodierkroete, yes, never do security client side. But no, no rendering necessary. If I only release the template when security level is high enough.
[20:47:54] <edrocks> s3shs: the reason i suggested mustache is you could keep your template in one file and conditionaly disable any part of it based on auth
[20:47:59] <s3shs> Do you people render server-side? What channel is this?!?! ;-)
[20:48:05] <nickeddy> hahaha
[20:48:09] *** cthrax has quit IRC
[20:48:13] <snurfery> I was thinking about that same prob
[20:48:16] <nickeddy> i do a single server side render for the index.html, that's it :P
[20:48:19] <s3shs> edrocks, mustache reminds me of ember. And I didn't like ember.
[20:48:22] *** zumba_addict has joined #angularjs
[20:48:26] <nickeddy> for stupid django CSRF
[20:48:40] <s3shs> angular handles csrf automatically.
[20:48:47] <s3shs> Node handles it with like two lines of code.
[20:48:59] <snurfery> nickeddy: you don't need to do that
[20:49:07] <snurfery> I use django too
[20:49:15] <snurfery> with csrf
[20:49:23] <snurfery> but nothing server-rendered
[20:49:29] <nickeddy> you have a view
[20:49:33] <nickeddy> for your base.html
[20:49:36] <nickeddy> that's a server side render
[20:49:39] *** stevvooe has joined #angularjs
[20:49:40] <nickeddy> :P
[20:49:45] <snurfery> straight nginx
[20:49:53] <nickeddy> well there's that too
[20:49:54] <snurfery> not served by django
[20:50:00] <nickeddy> yeah
[20:50:00] *** phrozensilver has joined #angularjs
[20:50:02] *** holymac has quit IRC
[20:50:05] <nickeddy> we don't use nginx here
[20:50:05] <SockSorcerer> anyone know of any tools that will take a HAR and let me make new requests out of it?
[20:50:07] <snurfery> i.e. nothing dynamic about the page except the rest calls
[20:50:17] <SockSorcerer> i would love to be able to paste that shit into a rest client
[20:50:18] <nickeddy> snurfery: apache wsgi :\ wish i had say over that haha
[20:50:27] <kodierkroete> Servsr side can make sense. Imagine a ton of different user roles each with a ton of custom directives ... I would not like to serve a mobile user a ton of things he wont really need
[20:50:35] <snurfery> yeah
[20:50:37] *** screamingbanshee has quit IRC
[20:50:50] *** dylukes has joined #angularjs
[20:51:15] <kodierkroete> Each kilobyte does some 10 mil secs of parsing or so on mobile devices
[20:51:25] <nickeddy> well protected routes are doable, i think ssr is silly in an angular context. protect your REST api
[20:51:37] *** richiebkr has quit IRC
[20:51:44] <nickeddy> each kb 10ms? bullshit lol
[20:52:26] <edrocks> how many betas does angular usually go through for a version?
[20:52:40] *** phrozensilver has left #angularjs
[20:52:50] *** mossface has joined #angularjs
[20:52:54] *** naxs has joined #angularjs
[20:52:57] <s3shs> edrocks, the 1.even versions are usually very solid. The 1.odd versions are testing new ideas. I tend to avoid the 1.odd versions.
[20:53:11] <nickeddy> snurfery: yeah I do the same
[20:53:12] <snurfery> so my index.html could be served directly from s3 for all I care
[20:53:25] <s3shs> slurp
[20:54:37] *** disorder20 has joined #angularjs
[20:54:55] <nickeddy> is that a new competitor to gulp s3shs ?
[20:54:57] <OddDuck`> Is there any way I can use interceptors to abort ajax requests and respond with a faux-401? If there's no session info, I know backend will return a 401 so i want to just short circuit the process
[20:55:07] <snurfery> mebbe I can make one of my js files be served by django, and it contains all the minified protected html contents'
[20:55:11] *** kwladyka has joined #angularjs
[20:55:20] <s3shs> OddDuck`, yes.
[20:55:26] <snapwich> well gulp has only been around for a few months, so it makes since that we've already moved onto another hotness
[20:55:26] <snurfery> so only auth'ed people can get to it, and it loads it into $templatecache or whatever it's called
[20:55:26] <s3shs> nickeddy, hah, no.
[20:55:35] *** Reskp has joined #angularjs
[20:55:38] <nickeddy> snurfery: that's essentially what i do with the single render in index.html - check if user is authed and if they are, throw in my ui-view, otherwise, fuck em.
[20:55:41] <s3shs> I like gulp a lot.
[20:55:49] *** bkuberek has joined #angularjs
[20:55:54] <nickeddy> s3shs: yeah i'm using gulp now, love it
[20:56:10] <snapwich> did you guys have issues trying to implement a "clean" task in gulp?
[20:56:13] <snurfery> nickeddy interesting
[20:56:44] <nickeddy> snurfery: so you could potentially do something with named views and that
[20:57:00] *** naxs has quit IRC
[20:57:02] <BahamutWC|Work> I like gulp too
[20:57:22] <nickeddy> BahamutWC|Work: feels much better writing in gulp than grunt
[20:57:36] *** ededagic_ has joined #angularjs
[20:57:37] *** seydoggy has joined #angularjs
[20:57:43] *** shaym has joined #angularjs
[20:57:44] <quicksnap> clean task in gulp is difficult due to unordered async dependencies
[20:57:44] *** lordkryss has joined #angularjs
[20:57:44] *** ededagic has quit IRC
[20:57:52] <quicksnap> i think they're gunning for a fix if they haven't pushed one already
[20:58:05] <snapwich> yeah, i don't like how I have "clean" working on gulp right now
[20:58:09] <quicksnap> current workarounds are clunky
[20:58:22] *** ascarter has quit IRC
[20:58:24] <BahamutWC|Work> I kinda hate playing around with gruntfiles
[20:58:28] <s3shs> quicksnap, use gulp's 'run-sequence'.
[20:58:34] *** spencercarnage has joined #angularjs
[20:58:44] <s3shs> It cleans up a lot of code. Something similar to it will be built in soon, I think.
[20:58:52] <quicksnap> rad thanks
[20:58:55] *** visionary__ has joined #angularjs
[20:58:58] <snapwich> yeah, run-sequence is just a hack though right now. and i think they're deprecating it when gulp 4.0 comes out
[20:59:19] <snapwich> which i think is soon
[20:59:21] <sonicparke|bradm> I'm failing to see what ngAnimate actually does for me. Especially since I've got to put all the CSS transistions and stuff in myself.
[20:59:24] *** whunt has quit IRC
[20:59:26] <quicksnap> yeah I read something about how they're planning it, but lost the GH issue
[20:59:44] <quicksnap> s3shs: thanks, looking at it. looks straightforward
[20:59:50] *** geilt has joined #angularjs
[20:59:58] <s3shs> It's almost "too easy".
[21:00:19] *** Sky[x] has quit IRC
[21:00:27] *** plitzenberger has joined #angularjs
[21:00:41] *** cthrax has joined #angularjs
[21:00:57] <snapwich> sonicparke|bradm i think ngAnimate primarily is just to provide helper classes for your CSS transitions so they can apply to specific events as they're happening
[21:01:06] <OddDuck`> s3shs, I can short circuit a request by returning a promise I reject instead of config. Is there a way to make the rejection appear like a 401 coming back from the server? (I know this is probably bad practice.)
[21:01:29] *** richiebkr has joined #angularjs
[21:01:31] <s3shs> OddDuck`, that's kind of what I'll be doing. 404 if user level bad.
[21:01:32] *** richiebkr has quit IRC
[21:01:45] <s3shs> It's management stuff for the back-room so it's ok.
[21:01:54] *** Sky[x] has joined #angularjs
[21:02:13] *** thedodd has quit IRC
[21:02:18] <nickeddy> quicksnap: what do you mean? i just clean out the entire dist/build folder
[21:02:37] *** mykz_ has joined #angularjs
[21:03:03] *** pskrz has joined #angularjs
[21:03:06] *** thedodd has joined #angularjs
[21:04:04] *** patrickarlt has joined #angularjs
[21:04:12] *** patrickarlt has quit IRC
[21:04:17] *** Aartsie has joined #angularjs
[21:04:28] *** phuh has quit IRC
[21:04:45] *** patrickarlt has joined #angularjs
[21:04:55] *** phuh has joined #angularjs
[21:05:04] <icfantv> i thought angular cleaned up $scopes after they were no longer being used?
[21:05:31] *** roymiloh has joined #angularjs
[21:05:50] <snurfery> icfantv: if the DOM element that the scope is attached to no longer exists, then yeah it should be destroyed
[21:05:51] *** jdangler has quit IRC
[21:05:58] <snurfery> are you seeing something that suggests otherwise?
[21:06:09] <icfantv> snurfery: yea
[21:06:10] <BahamutWC|Work> icfantv: if you created a $scope manually, you may have to manually gc it
[21:06:17] <icfantv> not creating manually
[21:06:22] *** bilb_ono has quit IRC
[21:06:34] <icfantv> i've got a warning that displays when my form is dirty and i try to navigate away
[21:07:26] <icfantv> i said ok and navigated away - when i navigate back the $locationChangeStart is firing and my $dirty is returning true
[21:07:34] <quicksnap> nickeddy: I've had my issues with it. been a while since I've messed with it.. just manually clean when I need currently
[21:08:08] *** ascarter has joined #angularjs
[21:08:20] *** Guest32576 has quit IRC
[21:08:32] *** Aliks_ has quit IRC
[21:08:44] <icfantv> if i call $setPristine() in $locationChangeStart (after the confirm), the problem goes away
[21:08:53] *** bertrandk has joined #angularjs
[21:09:18] *** patrickarlt has quit IRC
[21:09:29] <sonicparke|bradm> snapwich: ok. thanks
[21:09:33] <nickeddy> oops
[21:09:44] *** sigurding has quit IRC
[21:10:13] <icfantv> gah!
[21:10:15] <quicksnap> nickeddy: problem is having that task run as a dependency before other tasks
[21:10:16] <icfantv> crap
[21:10:17] <icfantv> nm
[21:10:26] *** mehlah has quit IRC
[21:10:26] <icfantv> i'm setting it on the $rootScope
[21:10:27] <icfantv> duh
[21:11:13] <BahamutWC|Work> ouch
[21:11:14] <icfantv> though. i guess i don't understand how the child scope is still accessible at that point
[21:11:31] <BahamutWC|Work> you have equality by reference
[21:11:36] *** encrypt3d_fracti has quit IRC
[21:11:51] *** patrickarlt has joined #angularjs
[21:11:55] <icfantv> not sure i follow
[21:12:13] *** jamesshijie has joined #angularjs
[21:12:16] <BahamutWC|Work> your form name is published on $scope (in this case $rootScope) - it is an object
[21:12:31] <BahamutWC|Work> so in the child scope, you have equality by reference
[21:12:53] <icfantv> oh. are all forms published on $rootScope?
[21:12:57] <BahamutWC|Work> no
[21:13:02] <BahamutWC|Work> they are published on the current scope
[21:13:10] *** jmichaelward has joined #angularjs
[21:13:13] <BahamutWC|Work> if your current scope is $rootScope, it will publish on that
[21:13:14] *** mykz_ has quit IRC
[21:13:24] <icfantv> my current scope is inside my controller
[21:13:44] *** NaOH has joined #angularjs
[21:14:09] <icfantv> but in that controller, i'm calling: $rootScope.on($locationChangeStart, function() {}) and in the function body, i reference $scope.myForm.$dirty
[21:14:20] *** gordroid has joined #angularjs
[21:14:53] <BahamutWC|Work> NaOH: before returning your directive object, you could do var id = ...
[21:15:16] <BahamutWC|Work> and then in your directive linking function, do scope.id = ++id; or something like that
[21:15:28] <BahamutWC|Work> or you could create a hashing function - whatever you like
[21:16:26] *** nanoyak has quit IRC
[21:16:40] *** rob____ has joined #angularjs
[21:16:47] *** jamesshijie has quit IRC
[21:16:50] *** hugotox has joined #angularjs
[21:17:04] *** rob____ is now known as Guest55776
[21:17:44] *** Nizumzen has joined #angularjs
[21:17:45] <nickeddy> quicksnap: oh that's easyu
[21:18:10] <nickeddy> quicksnap: in other tasks, do gulp.task('someTask', ['clean'], function() {});
[21:18:36] *** jamto11 has joined #angularjs
[21:18:45] *** Guest55776 has quit IRC
[21:18:45] <NaOH> BahamutWC|Work: does scope.id have some significance?
[21:18:45] <nickeddy> quicksnap: and then for default: gulp.task('default', ['clean', 'someTask', 'blahBlah']);
[21:18:56] <nickeddy> quicksnap: that will make sure they execute in order
[21:19:15] <NaOH> BahamutWC|Work: I guess I don't understand why it is currently the same
[21:19:18] <BahamutWC|Work> NaOH: nah, just pick whatever you want to store it in inside the directive
[21:19:27] *** pushpak has quit IRC
[21:19:32] <BahamutWC|Work> I was just giving an example of a method to store a unique id
[21:19:38] *** mehlah has joined #angularjs
[21:19:41] *** hugotox has quit IRC
[21:19:44] *** zumba_addict has quit IRC
[21:19:47] <NaOH> BahamutWC|Work: do they share the same controller?
[21:19:58] *** caitp has quit IRC
[21:20:00] <BahamutWC|Work> no
[21:20:08] <BahamutWC|Work> it has nothing to do with a controller
[21:20:12] *** stayarrr has joined #angularjs
[21:20:22] *** hell_razer has joined #angularjs
[21:20:34] *** kodierkroete has quit IRC
[21:20:35] <NaOH> BahamutWC|Work: why do the two random numbers currently come out the same? are they not sharing a scope?
[21:20:46] *** hell_razer has quit IRC
[21:21:09] *** sigurding has joined #angularjs
[21:21:18] *** caitp has joined #angularjs
[21:21:22] <BahamutWC|Work> NaOh: oh, I didn’t even check out your plnkr
[21:21:23] *** Sebastien-L has quit IRC
[21:21:47] <BahamutWC|Work> they are the same because your directive does not create new $scope
[21:22:05] <BahamutWC|Work> so they are just currently sharing the same $scope
[21:22:19] *** negval has joined #angularjs
[21:22:40] <BahamutWC|Work> technically, I wouldn’t use purely Math.random() to come up with a random number - you could possibly get two being the same
[21:22:43] *** wilmoore has joined #angularjs
[21:22:59] <BahamutWC|Work> some hash based off of new Date() probably would be better
[21:23:10] *** jamto11 has quit IRC
[21:23:17] <NaOH> BahamutWC|Work: so adding scope: {} to the returned directive will do the trick?
[21:23:22] *** FunnyLookinHat has quit IRC
[21:23:29] <BahamutWC|Work> NaOH: yep
[21:23:50] <NaOH> BahamutWC|Work: the random number is just a toy to show the problem, i was actually just seeking the general solution
[21:23:52] <NaOH> thanks!!
[21:24:18] *** Wills_ has joined #angularjs
[21:24:48] *** Click66 has quit IRC
[21:24:49] *** volk_ has joined #angularjs
[21:25:23] *** Click66 has joined #angularjs
[21:25:28] *** KernelCurry has joined #angularjs
[21:25:31] *** plitzenberger has quit IRC
[21:25:35] <volk_> hey , i am wondering what the best practices are for passing in data from an outisde framework on initialization. i foudn that ng-init is not the correct way as it should be used to set aliases for iterating
[21:25:36] *** FunnyLookinHat has joined #angularjs
[21:25:36] *** seydoggy has quit IRC
[21:25:48] <krotscheck> If I declare a constant in Module A, and I also declare that constant in Module B, where A depends on B, if I ask to inject that constant inside a service in Module B, which of the two values would I get?
[21:26:10] *** seydoggy has joined #angularjs
[21:26:52] *** Siecje has quit IRC
[21:27:13] *** Jae has quit IRC
[21:27:29] *** ome has quit IRC
[21:27:34] *** ededagic_ has quit IRC
[21:27:51] <BahamutWC|Work> d3 is making my head spin :(
[21:28:00] *** ededagic has joined #angularjs
[21:28:20] *** stevvooe has quit IRC
[21:28:29] <Wills_> Does anyone know how to make angular-ui router generated links work inside a Plunker :/
[21:28:33] *** bchoate_ has joined #angularjs
[21:28:42] *** bahoo has joined #angularjs
[21:28:44] *** Anton_ has quit IRC
[21:28:58] <Wills_> It's not working because plunker obviously doesn't serve the Plunk at the root of the domain ...
[21:29:19] <BahamutWC|Work> ui router should work inside plnkr
[21:29:26] <BahamutWC|Work> plunker iframes the app
[21:29:26] *** bchoate has quit IRC
[21:29:30] <Wills_> Yeah I know...
[21:29:41] <bahoo> Using ngSwitch with ngRepeat gets messy, doesn’t it? I want to loop over some API results with ngRepeat, then only show the active one with ngSwitch, but seems like they step on eachothers toes.
[21:29:44] <Wills_> but the URL it iframes isn't the root
[21:29:45] *** mtsr has joined #angularjs
[21:29:46] <Wills_> E.G.
[21:29:53] *** Click66 has quit IRC
[21:29:53] <Wills_> the links there dont work.
[21:30:18] *** Fishy has quit IRC
[21:30:18] <Wills_> oh what.
[21:30:25] <Wills_> Now it prooves me wrong :/
[21:30:28] *** patrickarlt has quit IRC
[21:30:33] *** krawek has joined #angularjs
[21:30:34] *** boonkerz has joined #angularjs
[21:31:07] *** bchoate_ is now known as bchoate
[21:31:11] *** seydoggy has quit IRC
[21:31:57] *** asdofindia has quit IRC
[21:31:59] *** patrickarlt has joined #angularjs
[21:32:22] *** ededagic has quit IRC
[21:32:29] <s3shs> That's what a want... an angular app in charge of a plane's safety.
[21:32:46] <bahoo> Do I try to shoehorn my approach into Angular’s existing tools or do I scrap it and roll my own?
[21:32:50] <s3shs> Somebody needs to stope Wills_.
[21:32:55] <s3shs> ^ stop.
[21:33:33] *** slainer68 has joined #angularjs
[21:33:35] *** Anton_ has joined #angularjs
[21:33:44] *** nemothekid has joined #angularjs
[21:33:59] <BahamutWC|Work> bahoo: it’s generally best not to fight angular if you’re using it
[21:34:02] *** hannesvdvreken has joined #angularjs
[21:34:19] *** b1rkh0ff has quit IRC
[21:34:44] <bahoo> Thank you BahamutWC|Work. Do you have any suggestions for getting the two to play nicely? ngRepeat and ngSwitch?
[21:34:53] <BahamutWC|Work> oh I see
[21:34:59] <BahamutWC|Work> hmm, never ran into that problem
[21:35:04] <bahoo> I am at the “ready to fight the framework” portion of the learning curve
[21:35:12] <BahamutWC|Work> if you’re using ng-switch, how about nesting it under the ng-repeat?
[21:35:28] *** Siecje has joined #angularjs
[21:35:36] *** KanwarUjjaval has joined #angularjs
[21:35:49] <bahoo> maybe specifics would help here
[21:36:00] <s3shs> bahoo, are you trying to include different templates for each switch choice?
[21:36:05] *** BobbieBarker has joined #angularjs
[21:36:13] <BahamutWC|Work> <div ng-repeat=“….”><div ng-switch …></div></div>
[21:36:25] *** kemm0__ has quit IRC
[21:36:32] <bahoo> I’m building a little four question survey (powered by REST API), so, loop over the array of questions, then only show the relevant one
[21:36:42] <bahoo> i’m looping with ngRepeat & trying to do the toggle & animation with ngSwitch
[21:36:43] *** JCinDE has joined #angularjs
[21:36:53] *** dmack has quit IRC
[21:37:09] <bahoo> seems like nesting would defeat the purpose. it’d be ngRepeat then ngShow, if anything ?
[21:37:29] *** cacts|works has joined #angularjs
[21:37:33] <bahoo> that second sentence needs a “seems like” out front, too
[21:37:42] <bahoo> s3shs: all one template, for now
[21:37:45] <KanwarUjjaval> anyone
[21:37:45] <Wills_> lol
[21:37:56] <Wills_> It's for simulator use only ;)
[21:38:13] *** Cavallari has quit IRC
[21:39:00] <nickeddy> noooo don't use $resource
[21:39:12] <KanwarUjjaval> nickeddy: why not?
[21:39:21] *** cacts|wtf has joined #angularjs
[21:39:31] <joroci> does anyone use angular ui bootstrap?
[21:39:45] <snurfery> errrrbody uses it
[21:39:48] <joroci> actually the popover
[21:40:10] <bahoo> yeah, $resource is the one thing I’m solidly digging about angularjs at present :P
[21:40:18] <snurfery> the popover is a bit on the lame side
[21:40:23] <snurfery> IMO
[21:40:25] *** schuran_ has quit IRC
[21:40:30] <joroci> i got a version of it which implements a template popover
[21:40:31] *** eamonn has joined #angularjs
[21:40:35] <nickeddy> it doesn't use promises
[21:40:36] <snurfery> certainly better than me having to build one myself, but it's rough
[21:40:42] *** schuran_ has joined #angularjs
[21:41:13] *** jamesshijie has joined #angularjs
[21:41:15] <joroci> anyway the problem is after the popover opens one time it's saved in the cache and will not refresh if you make popup again
[21:41:21] *** Nizumzen has quit IRC
[21:41:29] <joroci> make it popup again*
[21:41:43] <KanwarUjjaval> nickeddy: how do i trap the response after a post request in resource?
[21:41:56] <nickeddy> i don't use $resource so i wouldn't know
[21:41:58] <joroci> the template data, how can i clear it?
[21:42:03] <nickeddy> use Restangular or $http
[21:42:14] <nickeddy> $resource sucks cock for not using promises
[21:42:24] <KanwarUjjaval> nickedy : thanks :D
[21:42:32] <KanwarUjjaval> sticking to $http !
[21:42:35] *** cacts|works has quit IRC
[21:42:35] *** encrypt3d_fracti has joined #angularjs
[21:43:29] *** screamingbanshee has joined #angularjs
[21:44:30] *** bahoo has quit IRC
[21:44:58] *** eamonn has quit IRC
[21:45:27] <volk_> hey , i am wondering what the best practices are for passing in data from an outisde framework on initialization. i foudn that ng-init is not the correct way as it should be used to set aliases for iterating
[21:45:32] *** richiebkr has joined #angularjs
[21:46:03] *** seydoggy has joined #angularjs
[21:46:25] *** Aartsie has quit IRC
[21:46:28] *** kotyy has joined #angularjs
[21:46:46] <JCinDE> Is there any way to write a directive that just adds an alias to the scope? Especially useful on ngRepeat if I need to do an expensive look-up using a property of the repeat context. Only thing I know to do now is either call the expensive lookup repeatedly or write a directive for the whole thing which seems excessive.
[21:46:51] <nickeddy> KanwarUjjaval: well you can use promises in $resource but it isn't very clean
[21:47:00] *** Aartsie has joined #angularjs
[21:47:07] *** bertrandk has quit IRC
[21:47:27] *** bertrandk has joined #angularjs
[21:47:34] <KanwarUjjaval> nickeddy, as long as there is no downside of using http, i dont mind using it,
[21:47:39] <KanwarUjjaval> im using it for a rest api
[21:47:55] <KanwarUjjaval> but its just post and get, and ive written a small service to make things neat
[21:48:16] <house> i like $resource. i find it very simple.. i manipulate the data as needed on the api server side.
[21:48:33] <nickeddy> again, $resource mucks with how promises should be used
[21:48:40] <nickeddy> which is a big no no if you ask me
[21:48:45] <nickeddy> Restangular is better imo
[21:49:14] <house> yeah. i looked at it. it looks good.. but for now, ive got what i need out of $resource.
[21:49:21] *** patouche has joined #angularjs
[21:49:27] <KanwarUjjaval> a small service to make $http easier, with a api that taks only get and post, $http is good isn't it?
[21:49:42] <nickeddy> KanwarUjjaval: yeah that's fine
[21:49:49] <house> $http is not as simple as resource..but it is pretty straight forward
[21:49:53] <nickeddy> KanwarUjjaval: Restangular is good if you have a ton of API endpoints
[21:50:01] <KanwarUjjaval> nickeddy: thanks for the help :D
[21:50:03] <nickeddy> KanwarUjjaval: but $http can work just fine
[21:50:09] <nickeddy> you're welcome
[21:50:10] <KanwarUjjaval> nickeddy: will look at it
[21:50:32] *** b1rkh0ff has joined #angularjs
[21:51:09] *** darrin has quit IRC
[21:51:30] *** Aartsie has quit IRC
[21:52:06] *** bahoo has joined #angularjs
[21:53:46] <bahoo> Any suggestions on using ngSwtich with ngRepeat?
[21:55:00] *** screamingbanshee has quit IRC
[21:55:15] <linagee__> can someone please help me get angular working? :-/ I have angular loaded on the page. (I type angular in Firebug and it shows the object exists)
[21:55:21] <linagee__> but my controller isn't executing.
[21:55:46] <blak422> So I have a defined route with controller 'A'. In that page there is some ng-includes each with its respective controllers 'xyz'. I have a problem that I cannot access $scope var from controller 'A' in 'xyz'. Can anyone tell me why? I though $scope what inherited waterfall like.
[21:55:50] <icfantv> linagee__: do you have ng-controller on your div where your cod is?
[21:55:55] <icfantv> *code
[21:56:01] <subnl> linagee__: did you include your script for your controller in the file?
[21:56:40] <icfantv> blak422: are you injecting it?
[21:56:42] <linagee__> subnl: I have it inline
[21:56:55] *** josh-k has joined #angularjs
[21:57:14] <icfantv> blak422: ala function($scope) {}
[21:57:22] <blak422> ahh nope
[21:57:39] <linagee__> subnl: "inside controller" never appears on my console log. :-/
[21:57:42] *** shackleford has quit IRC
[21:57:56] <icfantv> linagee__: what's that \ character?
[21:57:58] <linagee__> subnl: Don't mind the \$, that's me escaping because its inside Perl.
[21:58:04] <icfantv> oh, ok
[21:58:08] *** KanwarUjjaval_ has joined #angularjs
[21:58:09] *** BryceReynolds has joined #angularjs
[21:58:13] *** shackleford has joined #angularjs
[21:58:31] *** patrickarlt has quit IRC
[21:58:32] <linagee__> subnl: are the ng-app and ng-controller correct? its physically rendering out {{test}}
[21:58:33] *** stayarrr has quit IRC
[21:58:58] <icfantv> subnl: that looks right. are you sure the \ isn't messing things up?
[21:59:06] <linagee__> icfantv: me?
[21:59:13] *** _ht has quit IRC
[21:59:13] <icfantv> gah
[21:59:15] <icfantv> sorry, yes
[21:59:17] *** fatshark has joined #angularjs
[21:59:20] <subnl> linagee__: I think icfantv is talking to you
[21:59:27] <subnl> it looks right, except the escaping
[21:59:34] <linagee__> icfantv: yes. I have it inside of a perl statement. print qq| <stuff here> |;
[21:59:54] <BahamutWC|Work> it sounds like the angular app isn’t instantiated
[22:00:03] <subnl> linagee__: I recommend you try this outside of perl first
[22:00:04] <BahamutWC|Work> if it is showing {{test}}
[22:00:13] *** Aswebb has joined #angularjs
[22:00:17] <subnl> and then put it back in after it starts working
[22:00:30] *** dmack has joined #angularjs
[22:00:36] *** panchisco has quit IRC
[22:00:36] *** bahoo has quit IRC
[22:00:43] <linagee__> BahamutWC|Work: was angular made to load within a jQuery .load?
[22:00:48] <icfantv> i agree w/ sbunl - try outside of perl
[22:00:53] <linagee__> (could that be messing it up?)
[22:00:56] <BahamutWC|Work> no
[22:01:00] *** KanwarUjjaval has quit IRC
[22:01:08] *** Azzurrio has quit IRC
[22:01:08] <BahamutWC|Work> angular listens for the DOMContentLoaded event I believe
[22:01:13] *** Aliks_ has joined #angularjs
[22:01:23] *** bertrandk has quit IRC
[22:01:29] <linagee__> hrm. perhaps its treating it like an entirely new document inside the .load and I have to include angular again?
[22:01:48] <linagee__> (even though I can verify the "angular" object exists currently in Firebug)
[22:01:58] *** jae has joined #angularjs
[22:02:04] *** trave has quit IRC
[22:02:05] *** ceephax has joined #angularjs
[22:02:08] *** xyNNN has joined #angularjs
[22:02:10] *** darrin has joined #angularjs
[22:02:19] *** panchisco has joined #angularjs
[22:02:19] <BahamutWC|Work> the angular object may be fine, but if you’re loading the scripts sometime after the DOMContentLoaded event, nothing will happen
[22:02:31] <linagee__> BahamutWC|Work: ah
[22:02:32] *** whunt has joined #angularjs
[22:02:37] <BahamutWC|Work> although, if you’re not getting errors, this probably is not happening
[22:02:43] <linagee__> BahamutWC|Work: is there a way to prod it into working? calling angular.run or something?
[22:02:45] *** nanoyak has joined #angularjs
[22:02:49] <linagee__> ah ok
[22:02:54] *** shacklef_ has joined #angularjs
[22:03:07] *** eperez has quit IRC
[22:03:16] <linagee__> on the top of my file I outputted the angular object. so I verified its there too.
[22:03:29] <icfantv> linagee__: are you including angular.js via <script> or bootstrapping it?
[22:03:40] *** eperez has joined #angularjs
[22:03:42] *** marc_v92 has joined #angularjs
[22:03:47] <linagee__> icfantv: via <script>
[22:03:51] *** hannesvdvreken has quit IRC
[22:04:00] *** shaym has quit IRC
[22:04:05] <linagee__> icfantv: then the script I pasted is getting loaded uses .load (inside a jQuery dialog popup)
[22:04:23] *** patrickarlt has joined #angularjs
[22:04:30] *** shackleford has quit IRC
[22:04:30] *** phuh has quit IRC
[22:04:33] *** Vinnyceptr has quit IRC
[22:04:41] <icfantv> i'm not familiar w/ .load, does that do an eval?
[22:04:56] *** phuh has joined #angularjs
[22:05:43] *** bertrandk has joined #angularjs
[22:05:54] <icfantv> where is the JS in reference to the HTML? it is starting to sound like angular has already parsed the DOM before your J/S has been loaded
[22:05:59] *** KanwarUjjaval_ has quit IRC
[22:06:12] *** thedodd has quit IRC
[22:06:23] <linagee__> is there a way to get it to reparse it? (jquery will be loading stuff after the intial load event)
[22:06:40] *** Efrem has quit IRC
[22:06:48] <linagee__> or maybe I need to call angular later inside of the page that's .loaded?
[22:07:00] <linagee__> (maybe the angular object existing is not enough?)
[22:07:07] *** trave has joined #angularjs
[22:07:35] <icfantv> i don't think you WANT it to reparse the DOM
[22:07:51] *** eperez has quit IRC
[22:07:57] <icfantv> you can defer the angular loading and call angular.bootstrap if you want
[22:08:21] <icfantv> but that may have some visual side effects
[22:08:30] *** patrickarlt has quit IRC
[22:08:30] <marc_v92> Does Angular have any directives to pump caffeine directly into my bloodstream? Lol. 4pm on a Monday, basic routing is proving too much for my brain to currently handle.
[22:09:17] *** sigurding has quit IRC
[22:09:19] <BahamutWC|Work> marc_v92: I feel your pain, but replace 4 pm with 1 pm :(
[22:09:40] *** mrwn has quit IRC
[22:09:57] *** patrickarlt has joined #angularjs
[22:10:21] <marc_v92> BahamutWC|Work: West coast, I take it?
[22:10:21] *** thedodd has joined #angularjs
[22:10:33] <BahamutWC|Work> marc_v92: yep, in the Valley
[22:10:33] *** delano has joined #angularjs
[22:10:42] *** Azzurrio has joined #angularjs
[22:11:43] <marc_v92> BahamutWC|Work: Nice. Today was supposed to be much busier than it has been, which normally I’d be okay with, but I’m pretty much falling asleep at my desk. I forgot to pass the templateUrl through with my route, and spent 20 minutes trying to figure out why nothing was showing up.
[22:12:13] <BahamutWC|Work> marc_v92: haha I’ve done that before
[22:12:28] *** KamalKaur has quit IRC
[22:12:30] <BahamutWC|Work> I kinda want to just head on home right now myself…but that’s frowned upon :/
[22:12:33] <nickeddy> Siecje: don't use .success, use .then
[22:12:47] *** mfunkie has quit IRC
[22:12:53] *** shinnya has joined #angularjs
[22:12:56] <Siecje> when do you use .success()?
[22:12:58] <nickeddy> Siecje: $http.get().then(function(success) {}, function(error) {});
[22:13:00] <nickeddy> never :P
[22:13:08] <BahamutWC|Work> I would only use success if for some reason I want the status code
[22:13:13] *** mfunkie has joined #angularjs
[22:13:23] *** spencercarnage has quit IRC
[22:13:28] <nickeddy> i believe you can still get the status code from .then
[22:13:41] *** trave has quit IRC
[22:14:03] <BahamutWC|Work> I think that changed
[22:14:06] *** lucasefe has quit IRC
[22:14:06] *** stevvooe has joined #angularjs
[22:14:13] <nickeddy> oh :(
[22:14:22] <marc_v92> Siecje: Also, from your current code, your braces and closing parentheses look like they’re a bit out of order.
[22:14:25] <BahamutWC|Work> it used to be $http.get(…).then(function (response) { …})
[22:14:40] <BahamutWC|Work> but now instead of the response, it returns the data itself
[22:14:58] <Siecje> marc_v92: the answer? indeed I'm trying to figure out how it should look.
[22:15:46] *** BMCouto has quit IRC
[22:16:13] *** doddstack has joined #angularjs
[22:16:55] *** thedodd has quit IRC
[22:16:56] *** MANCHUCK has joined #angularjs
[22:17:43] *** lucasefe has joined #angularjs
[22:17:44] *** mfunkie has quit IRC
[22:18:02] *** bejames has joined #angularjs
[22:18:05] *** kwladyka has quit IRC
[22:18:05] *** ome has joined #angularjs
[22:18:41] *** jamto11 has joined #angularjs
[22:19:02] <marc_v92> Siecje: Sorry, I’m probably not in the best condition (read: fully awake) currently to line up opening and closing parentheses, lol. Just copy/paste it into an IDE and see if you can find the mismatches.
[22:19:50] *** Shrooms has joined #angularjs
[22:20:15] *** lucasefe has quit IRC
[22:21:03] *** hell_razer has joined #angularjs
[22:21:08] *** bbankes_ has joined #angularjs
[22:21:09] <Siecje> Where do I put the return ?
[22:21:17] <delano> Anybody here have experience testing template compilation without a DOM? I'm thinking of running some view-specs against a decorated $window or explicitly compiling the root directive.
[22:21:25] *** hell_razer has quit IRC
[22:23:00] *** jamto11 has quit IRC
[22:23:18] *** mtsr has quit IRC
[22:23:20] *** bbankes has quit IRC
[22:23:44] *** mtsr has joined #angularjs
[22:24:20] *** e-dard has joined #angularjs
[22:24:41] <e-dard> Hi, is it possible to have a view access a Service?
[22:25:01] *** Cydmax has joined #angularjs
[22:25:42] *** mmccook has quit IRC
[22:25:48] <e-dard> I have made an "AlertService" where I add alerts (pop ups in bootstrap) I would like to have index.html access these
[22:25:50] *** mtsr has quit IRC
[22:26:40] *** spencercarnage has joined #angularjs
[22:26:54] <delano> e-dard: What kind of access? Templates are static.
[22:27:07] *** AlexZanf has quit IRC
[22:27:22] <e-dard> delano: For example, I have in index.html <alert ng-repeat="alert in alerts" type="{{alert.type}}" close="closeAlert($index)">{{alert.msg}}</alert>
[22:27:32] <jaawerth> BahamutWC, nickeddy, Siecje: .success is just a convenience function that wraps .then and gives you specific data for use in your callback's parameters. You can still just use .then, you just have to separate out the result.status, result.data, result.headers, result.statusText, etc
[22:27:48] <e-dard> delano I have created closeAlert and the alerts variable in a Service
[22:27:48] <jaawerth> I prefer to use .then anyway for the sake of consistency
[22:27:56] *** mossface has quit IRC
[22:27:56] *** plitzenberger has joined #angularjs
[22:28:02] <BahamutWC|Work> jaawerth: yeah, success is a bit of a pain
[22:28:53] *** mccarrontr1ck has quit IRC
[22:28:57] <jaawerth> .success should still return a promise, though
[22:29:24] <jaawerth> and it wraps your callback with promise.then, so any return value you put in your callback will be available in the next .then
[22:29:38] *** in_deep_thought has joined #angularjs
[22:30:01] <delano> e-dard: It sounds like you're expecting $scope.alerts to be available on index.html. What's your root directive?
[22:30:18] *** philips has quit IRC
[22:30:18] *** philips has joined #angularjs
[22:30:21] <delano> e-dard: I mean, which controller's $scope is available to index.html?
[22:30:38] <in_deep_thought> am I doing this wrong? var myApp=angular.module(‘thisismyapp',[]); I copied it directly from the angularjs documentation but I am getting Uncaught SyntaxError: Unexpected end of input
[22:30:51] <e-dard> delano: I have created a controller, where I inject the service. I'm then expecting in index.html to be able to do <div ng-controller="AlertCtrl"> // the above alert element </div> ?
[22:30:51] <robdubya_> hola todos
[22:30:54] <in_deep_thought> its the first line of my main javascript file
[22:31:11] *** tsalb has joined #angularjs
[22:31:16] <e-dard> delano: lemme paste this somewhere :-P
[22:31:19] *** intellix has joined #angularjs
[22:31:27] <Siecje> e-dard: I'm using angular-growl
[22:31:40] *** bertrandk has quit IRC
[22:31:40] <delano> e-dard: Sure thing, but I gotta run anyhow.
[22:31:53] *** intellix has joined #angularjs
[22:31:56] <e-dard> ah OK, thanks
[22:31:59] <e-dard> delano: ^
[22:31:59] *** intellix has quit IRC
[22:32:20] *** mccarrontr1ck has joined #angularjs
[22:32:29] *** josh-k_ has joined #angularjs
[22:33:00] *** intellix has joined #angularjs
[22:33:45] *** fedenunez1 has joined #angularjs
[22:33:54] *** joroci has quit IRC
[22:34:01] *** joroci has joined #angularjs
[22:34:11] *** JasonSto_ has joined #angularjs
[22:34:25] *** drej has quit IRC
[22:34:36] *** akrikos has quit IRC
[22:34:40] *** intellix has joined #angularjs
[22:35:12] *** mrits has joined #angularjs
[22:35:26] *** hannesvdvreken has joined #angularjs
[22:35:53] *** fedenunez has quit IRC
[22:36:04] *** josh-k has quit IRC
[22:36:23] *** jdcasey has quit IRC
[22:36:34] *** lsiv568 has quit IRC
[22:36:46] *** s3shs has quit IRC
[22:37:08] *** s3shs has joined #angularjs
[22:37:11] *** delano has quit IRC
[22:37:17] *** JasonStoltz has quit IRC
[22:38:06] *** krawek has quit IRC
[22:38:27] *** cacts|wtf has quit IRC
[22:38:32] *** JasonSto_ has quit IRC
[22:39:13] *** krawek has joined #angularjs
[22:39:26] *** plitzenberger has quit IRC
[22:39:38] *** r0ok has joined #angularjs
[22:39:39] *** jobelenus has quit IRC
[22:39:46] *** jobelenus has joined #angularjs
[22:39:55] *** kppullin has quit IRC
[22:40:00] *** yoshokatana has quit IRC
[22:40:08] *** greengriminal has quit IRC
[22:40:37] *** bbankes_ has quit IRC
[22:40:49] *** jim789023 has joined #angularjs
[22:40:50] *** greengriminal has joined #angularjs
[22:41:21] *** MJD has joined #angularjs
[22:41:43] *** jim789023 has left #angularjs
[22:41:59] *** jim789023 has joined #angularjs
[22:42:00] *** gorkem has joined #angularjs
[22:42:12] *** yoshokatana has joined #angularjs
[22:42:42] *** Aliks_ has quit IRC
[22:43:10] *** Shadda has quit IRC
[22:43:21] *** ishi has joined #angularjs
[22:43:33] *** moritzs has quit IRC
[22:43:37] *** jamesshijie has quit IRC
[22:43:38] *** fedenunez1 has quit IRC
[22:43:46] *** mfunkie has joined #angularjs
[22:44:35] <BobbieBarker> i'm having a huge brain far
[22:44:39] <BobbieBarker> fart
[22:44:51] <BobbieBarker> how do you do an ng-options so it only returns the key/value
[22:44:54] <BobbieBarker> intead of the entire object
[22:45:11] <BobbieBarker> obj as obj.property for obj in Array
[22:45:47] *** mmccook has joined #angularjs
[22:46:01] *** waylon999 has quit IRC
[22:46:20] <BobbieBarker> is the entire object
[22:46:37] *** waylon999 has joined #angularjs
[22:47:08] *** mercwithamouth has quit IRC
[22:47:13] *** waylon999 has joined #angularjs
[22:47:14] <BobbieBarker> why use rootscope?
[22:47:30] <e-dard> BobbieBarker: I'm just trying to get it to work :(
[22:47:40] *** Mouzi` has quit IRC
[22:47:46] <e-dard> I will need to call the addAlert from other controllers
[22:47:54] <robdubya_> Siecje $q.defer();
[22:47:54] <e-dard> and I want to access alerts variable from index.html
[22:47:59] <robdubya_> you have to call the function
[22:48:01] *** DrMabuse has quit IRC
[22:48:02] *** Aliks_ has joined #angularjs
[22:48:20] *** maveneag_ has joined #angularjs
[22:48:23] *** Aartsie has joined #angularjs
[22:48:35] *** mfunkie has quit IRC
[22:48:38] *** Germanaz0|0FF has quit IRC
[22:48:52] <e-dard> robdubya_: I do?
[22:48:58] <charlesfinley> is this valid: <button type="button" data-ng-click="ValidationService.validateSomething()">Click</button> ?
[22:49:00] *** kppullin has joined #angularjs
[22:49:00] <robdubya_> no
[22:49:08] <robdubya_> not you e-dard
[22:49:14] *** Shadda has joined #angularjs
[22:49:25] <e-dard> oh ok
[22:49:30] <e-dard> :(
[22:49:40] <BahamutWC|Work> I wish someone could save me from bad CSS :(
[22:49:54] <BobbieBarker> me too
[22:50:06] <BobbieBarker> i have a team member that insists on hard coding css instead of using the grid
[22:50:37] <caitp> css is dumb anyways
[22:51:17] <BobbieBarker> can some one help me with my brain far?
[22:51:19] <BobbieBarker> fart
[22:51:22] <BobbieBarker> fuck i can't spell
[22:51:33] *** darrin has quit IRC
[22:51:47] *** Rovak has joined #angularjs
[22:52:08] *** volk_ has quit IRC
[22:52:12] *** mary5030 has quit IRC
[22:52:52] *** Joshee has quit IRC
[22:53:00] *** morenoh151 has joined #angularjs
[22:53:45] *** bengillies has joined #angularjs
[22:53:50] *** Germanaz0|0FF has joined #angularjs
[22:54:11] *** cthrax has quit IRC
[22:54:46] *** crockett95 has joined #angularjs
[22:55:28] *** boonkerz has quit IRC
[22:55:50] <in_deep_thought> is there a way to check whats in $scope from the browser console?
[22:56:01] <BobbieBarker> yeah get the batarang extension for chrome
[22:56:32] <ktornwall> i think without it, if you select element in the dev tools it will be available as $scope in the console?
[22:56:54] <crockett95> angular.element($0).scope()
[22:57:04] <crockett95> if it's the one selected in devtools
[22:57:36] *** Cydmax has quit IRC
[22:57:40] *** shacklef_ has quit IRC
[22:58:15] *** shackleford has joined #angularjs
[22:58:15]
<Sijdesign> i got this error: Failed to instantiate module mainApp due to: im using browserify my output file is this and i include angularjs before i include this script: http://laravel.io/bin/881NJ
[22:58:17] *** bengillies has quit IRC
[22:58:21] <Sijdesign> what can i have done wrong ?
[22:58:28] *** bLu__ has joined #angularjs
[22:58:53] *** jamesshijie has joined #angularjs
[22:58:55] *** danizord has quit IRC
[22:59:31] <BobbieBarker> you have a lot of logic in that controller
[22:59:38] *** jim789023 has quit IRC
[22:59:40] <marc_v92> 5pm, quitting time! BahamutWC|Work: Good luck in your last 3 hours, hope it goes fast for ya!
[23:00:00] <Sijdesign> BobbieBarker me ?
[23:00:21] <robdubya_> Siecje what are you trying to do? cache records?
[23:00:27] <BobbieBarker> yeah but thats not really the source of your problems but you should probably refactor that into a factory or a service
[23:00:32] *** panchisco has quit IRC
[23:00:33] *** marc_v92 has quit IRC
[23:01:07] *** bphogan is now known as bphogan_afk
[23:01:10] *** maveneagle has joined #angularjs
[23:01:25] <Sijdesign> yea thanks
[23:01:31] <Sijdesign> i just have no idea how to fix this error
[23:01:35] *** Joshee has joined #angularjs
[23:01:35] <Sijdesign> or how to debug it
[23:01:46] <BobbieBarker> are you turning 2 different controllers into objects with the same name?
[23:01:50] <BobbieBarker> this stuff is hard to read
[23:01:55] *** panchisco has joined #angularjs
[23:02:07] *** jim789023 has joined #angularjs
[23:02:12] *** ChrisMatheson has joined #angularjs
[23:02:19] <BobbieBarker> i think you used the same obj name for 2 different modules
[23:02:46] *** mennea has quit IRC
[23:02:48] <BobbieBarker> var itemCtrl = angular.module('mainCtrl', ['emailService']) -- var itemCtrl = angular.module('itemCtrl', ['itemService', 'timer']);
[23:02:50] *** shackleford has quit IRC
[23:02:50] *** trave has joined #angularjs
[23:02:52] *** dylukes has left #angularjs
[23:02:54] *** BillCriswell has quit IRC
[23:03:23] *** joroci has quit IRC
[23:03:28] *** lucasefe has joined #angularjs
[23:03:29] *** sharondio has quit IRC
[23:03:30] *** toastynerd has joined #angularjs
[23:03:36] *** jethar has joined #angularjs
[23:04:10] *** maveneag_ has quit IRC
[23:04:25] *** joroci has joined #angularjs
[23:04:32] *** phuh has quit IRC
[23:04:37] *** edrocks has quit IRC
[23:04:40] *** sharondio has joined #angularjs
[23:04:57] *** phuh has joined #angularjs
[23:05:11] *** kppullin has quit IRC
[23:05:21] <Sijdesign> im not sure where you see the same obj
[23:05:49] *** bjmosk has joined #angularjs
[23:05:54] <BobbieBarker> lines 16 and lines 58?
[23:06:09] *** whunt has quit IRC
[23:06:16] *** uf6667 has quit IRC
[23:06:22] *** jim789023 has quit IRC
[23:06:46] *** bphogan_afk is now known as bphogan
[23:07:01] *** TorchDragon has quit IRC
[23:07:10] *** mfunkie has joined #angularjs
[23:07:11] <BobbieBarker> also you may want to quit instantiating things via an object
[23:07:27] <icfantv> dammit. EBKAC.
[23:07:37] *** Ethix has joined #angularjs
[23:07:48] *** mary5030 has joined #angularjs
[23:07:58] *** mary5030 has quit IRC
[23:08:16] *** CodeFriar has quit IRC
[23:08:22] *** TorchDragon has joined #angularjs
[23:08:36] *** mary5030 has joined #angularjs
[23:08:52] <Sijdesign> BobbieBarker ah doh i have fixed the error with the itemCtrl
[23:08:52] *** trave has quit IRC
[23:08:56] <Sijdesign> i just got same error :S
[23:08:58] *** in_deep_thought has quit IRC
[23:09:16] <BobbieBarker> you need to change line 9 too where you bring in the app
[23:09:20] <BobbieBarker> where you inject i mean
[23:09:21] <BobbieBarker> sorry
[23:09:32] *** eamonn has joined #angularjs
[23:09:35] *** naxs has joined #angularjs
[23:09:35] *** boonkerz has joined #angularjs
[23:10:02] *** whunt has joined #angularjs
[23:10:06] *** jamesshijie has quit IRC
[23:10:13] <robdubya_> oh SNAP
[23:10:21] <robdubya_> d3 is the bees knees bros
[23:10:35] <Sijdesign> hm whats wrong on line 9 BobbieBarker
[23:10:45] *** OffTheRails has joined #angularjs
[23:11:01] <Sijdesign> the first is my ng-app="mainApp"
[23:11:11] <BobbieBarker> the injection
[23:11:26] <BobbieBarker> w/e name you used for the object = mainCtrl needs to be in there
[23:11:35] <BobbieBarker> you can't inject mainCtrl because of the way you're instantiating things
[23:12:47] *** richiebkr has quit IRC
[23:12:54] *** jethar has left #angularjs
[23:13:01] *** frostig has quit IRC
[23:13:02] <Sijdesign> hm not sure i understand, do i need to var mainController = ....
[23:13:31] <robdubya_> is that requireJS? why are you using it?
[23:13:46] *** jobelenus has quit IRC
[23:13:49] *** nicholaswyoung has joined #angularjs
[23:13:53] *** jdcasey has joined #angularjs
[23:14:02] *** eamonn has quit IRC
[23:14:22] <Sijdesign> its browserify
[23:14:23] *** naxs has quit IRC
[23:14:26] *** panchisco has quit IRC
[23:14:37] <robdubya_> same question then
[23:14:37] <Sijdesign> its so i dont have to use 5-10 http requests
[23:14:47] <Sijdesign> for every controller etc.
[23:14:55] <Sijdesign> so i can bundle all
[23:14:56] <robdubya_> why not just grunt / gulp concat them?
[23:15:05] *** seydoggy has quit IRC
[23:15:10] <Sijdesign> i just gulp browserify them :D
[23:15:14] <robdubya_> then you're not messing with weird instantiation (which is totally unnecessary in angular)
[23:15:37] *** mfunkie has quit IRC
[23:15:40] *** seydoggy has joined #angularjs
[23:15:48] *** drej has joined #angularjs
[23:15:59] *** zackiv31 has joined #angularjs
[23:16:00] *** DuelShark has quit IRC
[23:16:03] <Sijdesign> ah
[23:16:05] *** mfunkie has joined #angularjs
[23:16:26] *** zackiv31 has quit IRC
[23:16:46] *** HypnotiX has joined #angularjs
[23:17:28] *** Sijdesign has quit IRC
[23:18:38] *** trave has joined #angularjs
[23:18:39] *** jamto11 has joined #angularjs
[23:18:40] *** trave has quit IRC
[23:18:59] *** citizen-stig has quit IRC
[23:19:18] *** cacts|works has joined #angularjs
[23:19:33] *** trusktr has quit IRC
[23:20:07] *** richiebkr has joined #angularjs
[23:20:10] *** seydoggy has quit IRC
[23:20:22] *** mfunkie has quit IRC
[23:20:30] *** trave has joined #angularjs
[23:21:07] *** HypnotiX has quit IRC
[23:21:23] *** Snugug has quit IRC
[23:21:53] *** maveneag_ has joined #angularjs
[23:22:04] *** maveneag_ has quit IRC
[23:22:11] *** hell_razer has joined #angularjs
[23:22:36] *** maveneagle has quit IRC
[23:22:36] *** calumet has quit IRC
[23:23:13] *** jamto11 has quit IRC
[23:23:27] *** euskadi313 has joined #angularjs
[23:23:33] *** richiebkr has quit IRC
[23:24:02] *** kppullin has joined #angularjs
[23:24:08] *** mary5030 has quit IRC
[23:24:10] <quicksnap> I'm having an issue with ng-repeat: when I use $scope.myArray.splice(0) to empty the array, then push() some items onto it, I get a flash of both items before the removed items disappear. Wondering why the digest is waiting to remove items, but not waiting to display newly-added
[23:24:34] *** MTGap has joined #angularjs
[23:24:50] *** xat- is now known as xAt
[23:24:55] *** richiebkr has joined #angularjs
[23:24:59] *** jamesshijie has joined #angularjs
[23:25:28] <quicksnap> I've tried wrapping the push() in a $timeout
[23:25:30] *** Ilyas has quit IRC
[23:25:39] *** Grokling_ has joined #angularjs
[23:26:14] *** euskadi31_ has quit IRC
[23:26:22] *** jobelenus has joined #angularjs
[23:26:30] *** hell_razer has quit IRC
[23:26:32] *** mrits has quit IRC
[23:26:51] *** intellix has quit IRC
[23:27:18] *** Nizumzen has joined #angularjs
[23:27:44] *** DrMabuse has joined #angularjs
[23:28:07] *** Aswebb has quit IRC
[23:29:10] *** xyNNN has quit IRC
[23:29:34] <BahamutWC|Work> quicksnap: if I had to guess, ng-repeat is batching what is to be removed to be done in one fell swoop
[23:30:03] <BahamutWC|Work> it would likely be for performance reasons
[23:30:14] <quicksnap> Welp, found out what it was..
[23:30:18] <quicksnap> CSS transition
[23:30:25] <BahamutWC|Work> ah
[23:30:29] <quicksnap> yup..
[23:30:29] *** MacWinner has quit IRC
[23:30:44] *** zanea|away is now known as zanea
[23:30:54] *** MacWinner has joined #angularjs
[23:31:16] <quicksnap> thanks anyway =)
[23:31:34] *** hannesvdvreken has quit IRC
[23:32:07] *** ceephax has quit IRC
[23:32:10] *** bertrandk has joined #angularjs
[23:32:26] *** mmccook has quit IRC
[23:32:28] *** prikk has quit IRC
[23:32:43] *** delano has joined #angularjs
[23:32:44] *** roymiloh has quit IRC
[23:33:10] *** cacts|works has quit IRC
[23:33:16] *** vintik has quit IRC
[23:33:52] <BobbieBarker> not sure what to make of this
[23:33:53] *** vintik has joined #angularjs
[23:33:59] <BobbieBarker> i think it could be a problem with angular-strap itself
[23:34:10] <BobbieBarker> if i comment out the code in angular-strap.js the error stops
[23:34:48] *** mspier is now known as mspier_off
[23:35:33] *** OffTheRails has quit IRC
[23:35:58] *** squeakytoy has quit IRC
[23:36:01] *** shackleford has joined #angularjs
[23:36:19] *** mpaarating has quit IRC
[23:36:27] *** bertrandk has quit IRC
[23:37:04] *** in_deep_thought has joined #angularjs
[23:37:11] *** delano has quit IRC
[23:37:18] <robdubya_> any math geeks about?
[23:37:21] *** FIFOd[a] has quit IRC
[23:37:32] *** rho has quit IRC
[23:37:40] <BobbieBarker> <-- depends
[23:37:40] <BahamutWC|Work> sup robdubya_?
[23:37:57] *** AxldenieD has quit IRC
[23:38:00] <robdubya_> sensor fusion. in javascript. thoughts?
[23:38:12] <BobbieBarker> if you want to find the hypotenuse of a triangel i'm out
[23:38:16] <BahamutWC|Work> what’s that?
[23:38:29] <robdubya_> BahamutWC|Work so i've got a bluetooth sensor wdiget thinger
[23:38:40] <BahamutWC|Work> I had to do that at my last job BobbieBarker and render a line…that sucked
[23:38:46] *** mikehaas763 has joined #angularjs
[23:38:49] <robdubya_> streaming raw accelerometer / gyro / magnetometer data
[23:38:53] *** shackleford has quit IRC
[23:39:05] *** shackleford has joined #angularjs
[23:39:16] <BahamutWC|Work> any reason not to?
[23:39:40] <robdubya_> BahamutWC no, i'm doing it :D
[23:40:00] <robdubya_> buuut now i need to mash them together to get meaningful stuffs
[23:40:12] *** vintik has quit IRC
[23:40:23] <robdubya_> watching a goog tech talk atm, just wondering if you'd done it before
[23:40:26] *** foofoobar has joined #angularjs
[23:40:43] *** vintik has joined #angularjs
[23:40:50] <BobbieBarker> not i
[23:41:13] <BahamutWC|Work> nope
[23:41:17] *** davek has joined #angularjs
[23:42:00] *** ccohn has quit IRC
[23:42:07] *** lucasefe has quit IRC
[23:42:36] *** ccohn has joined #angularjs
[23:42:45] <stirlingw> in what instance is it better to use a angular.forEach(blahs, function(value, key)) over for(blah in blahs)
[23:42:51] *** mercwithamouth has joined #angularjs
[23:42:52] <BahamutWC|Work> robdubya_: I take it you’re going to do it in a PhoneGap app?
[23:42:54] *** gordroid has quit IRC
[23:43:14] *** jpstone has quit IRC
[23:43:58] *** danyim has joined #angularjs
[23:44:11] *** bertrandk has joined #angularjs
[23:44:20] <robdubya_> BahamutWC yea. written all the BLE stuff already. if i can do it in JS, i'll do it there (as oppoosed to implementing it x2 in ObjC / Java )
[23:44:27] *** TimmyTones has joined #angularjs
[23:44:28] *** fedenunez has joined #angularjs
[23:44:31] *** roymiloh has joined #angularjs
[23:44:44] *** imehesz has quit IRC
[23:45:03] *** jal has joined #angularjs
[23:45:04] <robdubya_> oop BahamutWC|Work
[23:45:17] *** sonicparke|bradm has quit IRC
[23:45:20] *** teeray has quit IRC
[23:45:27] *** jal is now known as Guest15485
[23:45:58] *** livingstn has quit IRC
[23:46:26] <BahamutWC|Work> stirlingw: I’d say you’re better off not using the angular api for that sort of utility stuff
[23:46:30] <linagee__> awesome! I got my previous problem working with angular.bootstrap! :)
[23:46:37] <linagee__> thanks #angularjs! and BahamutWC|Work! :)
[23:46:44] *** screamingbanshee has joined #angularjs
[23:46:48] <BahamutWC|Work> np
[23:46:52] *** apetro_ has joined #angularjs
[23:47:01] *** ccohn has quit IRC
[23:47:10] <linagee__> BahamutWC|Work: it says it right on the document, of course. :) " Examples of when you'd need to do this include using script loaders "
[23:47:16] *** lucasefe has joined #angularjs
[23:47:25] <stirlingw> BahamutWC|Work: That is what I thought, but I saw it and was just curious.
[23:47:31] *** Guest15485 has left #angularjs
[23:47:34] <BahamutWC|Work> stirlingw: the only time I might consider iterating via angular.forEach is if I want to iterate over the key-value pairs in a $scope
[23:48:15] *** ChrisMatheson has quit IRC
[23:48:25] <davek> It seems weird that I can't find anything for this but how might one go about filtering a list of objects with separated first and last names so that the search term matches either the first or the last name or both if a space is present?
[23:48:26] *** danyim has quit IRC
[23:48:30] *** texinwien has quit IRC
[23:49:02] <BahamutWC|Work> davek: you would probably need to write a custom filter
[23:49:03] <davek> I.e. "some" matches Lonesome Guy as well as Thad Something but Thad Some would match only the latter.
[23:49:08] <BahamutWC|Work> or rather, a filter function on $scope
[23:49:11] *** apetro__ has joined #angularjs
[23:49:22] *** mrits has joined #angularjs
[23:49:24] <davek> BahamutWC|Work right that's what I'm doing but I'm curious as to how it might be implemented. Just a regex test on the string?
[23:49:41] <BahamutWC|Work> you can do myModel.split(‘ ‘) to split by spaces and then do the logic after
[23:49:44] *** snurfery has quit IRC
[23:50:07] <BahamutWC|Work> myModel.split(‘ ‘) would return an array of pieces
[23:50:21] *** dve has joined #angularjs
[23:50:25] *** vintik has quit IRC
[23:50:50] *** bejames has quit IRC
[23:50:59] *** atomical has quit IRC
[23:51:00] *** screamingbanshee has quit IRC
[23:51:00] *** disorder20 has quit IRC
[23:51:00] *** vintik has joined #angularjs
[23:51:20] *** dve has quit IRC
[23:51:31] <davek> BahamutWC|Work, okay but is a regex test on the string the most performant way? I've seen people injecting the $filter service to use that on the component parts and it just seems circuitous
[23:51:35] *** mccarrontr1ck has quit IRC
[23:51:37] *** yoshokatana has quit IRC
[23:51:45] *** apetro_ has quit IRC
[23:51:48] *** FifthWall has joined #angularjs
[23:51:52] *** lucasefe has quit IRC
[23:53:05] *** mccarrontr1ck has joined #angularjs
[23:53:12] *** MANCHUCK has quit IRC
[23:54:00] *** bLu__ has quit IRC
[23:54:56] *** bjmosk has left #angularjs
[23:55:11] <moogumbo> I'm trying to figure out how exactly I'd architect <graph> and <line> directives to work together, like they show
[23:55:19] *** prbc_ has quit IRC
[23:55:30] *** vintik has quit IRC
[23:56:18] *** MuffinMan` has quit IRC
[23:56:42] <moogumbo> I assume that the <graph> directive would need to have transclude: true, but I can't figure out how the directive inside (<line>) would alter the behavior of its parent
[23:57:11] <charlesfinley> Why JavaScript does not have a .peek() function for stacks?
[23:58:00] <BahamutWC|Work> moogumbo: the graphs below are deceiving, they are all 1 image
[23:58:34] *** dmack has quit IRC
[23:58:43] <nickeddy> charlesfinley: you using an array for a stack?
[23:58:54] <moogumbo> BahamutWC|Work: Yeah, I know it's not real code, but they make it sound like their real code is architected similarly
[23:58:58] *** patricka_ has joined #angularjs
[23:59:27] <moogumbo> It seems very nice to be able to specify components of a graph like that, so that's what I'm trying to achieve -- presumably the <graph> directive is somehow managing all the work to talk to an external graphing lib
[23:59:29] <BahamutWC|Work> moogumbo: hard to say without seeing their code
[23:59:35] <BahamutWC|Work> but you can abstract SVG using angular
[23:59:44] *** vintik has joined #angularjs
[23:59:46] <BahamutWC|Work> I’m not sure how strongly I’d want to rely on angular to do so though