These are chat archives for angular/angular.js

9th
Jan 2017
zach
@zrobsin_twitter
Jan 09 2017 03:19
anyone using angular 2?
anyone know if it would be pretty easy to add the telerik core UI controls (open source with jQuery as a dependency) to angular 2 project to be used for main UI controls or does that not make sense?
r2d2
@UsamaHameed
Jan 09 2017 09:41
Hi guys, does any one know of good Angular.js tutorials? There are so many to choose from... can't decide
Alex
@atodicebear
Jan 09 2017 09:52
Has someone worked with TinyMce/ui-TinyMce and could help me maybe?
http://stackoverflow.com/questions/41061781/multiple-tinymce-not-showing-init-right
Alex
@sashberd
Jan 09 2017 11:15
Hey guys, Is there is any good solution to make resolves in directives. Here the solutions are ambiguous angular/angular.js#2095
@UsamaHameed check in https://www.udemy.com/courses/search/?q=angular&src=sac&kw=angular&lang=en. They are cost some, but very good explained
Frederik Prijck
@frederikprijck
Jan 09 2017 13:51
@Shimizo What do you want to refactor ? That code looks fine .
@zrobsin_twitter wrong channel .
akaustav
@akaustav
Jan 09 2017 14:47
Can anyone help me host my angular2 application on an apache 2 http server with a context root of /hello?
For instance, on my localhost, I would like the application to be loaded when using: http://localhost:80/hello
Did not work for me
With the hello context
Frederik Prijck
@frederikprijck
Jan 09 2017 15:06
akaustav
@akaustav
Jan 09 2017 15:07
Sorry, I will post it there. Thanks.
Chris
@chris-eaton
Jan 09 2017 15:22

Hey everyone.. Can someone point me in the right direction. If I have the following HTML <span my-directive>{{somebinding}}</span> is it possible to access the binding through the directive?

The reason I ask is that I have built an animated counter directive that animates between numbers. So as the binding changes, it animates between the previous and new number. But that has to be explicitly set

<span count-to="{{$ctrl.DistanceTotal}}"></span>

This works great, BUT, ideally I'd like to be able to arbitrarily add filters to it, such as number to alter the output formatting... Perhaps im barking up the wrong tree with my original question, is there a better way to do this?

Alex
@atodicebear
Jan 09 2017 15:27

How can I filter deeper nested Objects with Angular in the ng-repeat?

<tr ng-repeat="v in $ctrl.htmlV | filter: {titel : search } ">
          <td >{{v.dict_Langs[1].HtmlLang.titel}}</td>

same level would be the Example above.
One level deeper it should be
filter : {dict_Langs: {titel:search } } //if im not mistaken
One level deeper
filter : {dict_Langs[1]: { HtmlLang: {titel:search } } } // not working

Adrian Kopytko
@adriankopytko
Jan 09 2017 16:00
@frederikprijck I thought that in angular is something like .service([..., ..., ...]) or other better approach
I try to pay a lot of attention on code quality ;)
Frederik Prijck
@frederikprijck
Jan 09 2017 16:02
Afaik It's not , I doubt that's even possible with angular 1..
In angular2 you define all services (providers) in a single Array, but not in Angular 1.
That's because angular 1 uses a key - value approach for DI, where angular2+ uses a typed approach for DI.
Adrian Kopytko
@adriankopytko
Jan 09 2017 16:04
@frederikprijck Okay, thank you very much :)
Frederik Prijck
@frederikprijck
Jan 09 2017 16:04
Just split your services/directives into modules, if you want to improve quality.
Evgueni
@Redoras
Jan 09 2017 19:59
Trying to figure out how to flatten a nested array
Frederik Prijck
@frederikprijck
Jan 09 2017 20:01
@Redoras Have you tried google ?
Alex Barberi
@alex-barberi
Jan 09 2017 21:13
@frederikprijck You do any work on the side?
@frederikprijck If so, what is your rate in USD?
Frederik Prijck
@frederikprijck
Jan 09 2017 21:14
I work 24/7 already :'(
Ahmed Rebai
@Rebaiahmed
Jan 09 2017 21:34
Hello
Frederik Prijck
@frederikprijck
Jan 09 2017 21:37
hi @Rebaiahmed
Ahmed Rebai
@Rebaiahmed
Jan 09 2017 21:38
so who here intereseted in angular2
Frederik Prijck
@frederikprijck
Jan 09 2017 21:39
Everybody should imo !
Ahmed Rebai
@Rebaiahmed
Jan 09 2017 21:40
i'am beginner
and i want to improve my skills
Frederik Prijck
@frederikprijck
Jan 09 2017 21:40
If you want to improve your skills in angular2, start moving towards the angular 2 channel https://gitter.im/angular/angular :D
I realy gotta create a snippet for this.
Mariusz Klimek
@tarnos12
Jan 09 2017 22:18
Hi, can someone tell me why calling $interval multiple times cause it to speed up?
battleTimer = $interval($scope.attack, 1000);
when I call it 2 times or more, then its impossible to clear it
value: "canceled", but there is "pending": undefined which is probably the reason. In any case, is there a way to prevent interval from being called twice or removing it completely?
Even if I set my variable which store interval to null, (while debugging) it keeps running anyway, so I assume it has to be saved somewhere else too? Should I simply make sure its never called twice on a same variable?