Re: [AngularJS] HTML links to routes in Angular app

2017-08-04 Thread Joseph Ortega
Stop all this please I don't want no more of this crap On Aug 3, 2017 7:45 PM, "Thomas Baine" wrote: > How do I (re)format links within an external html file that target > different routes in an Angular 4 app to "work" without reloading the app > when clicked. The

[AngularJS] storing a max value in a component

2017-08-04 Thread Zlatko Đurić
The simplest would be `max` operatorin an observable: https://github.com/Reactive-Extensions/RxJS/blob/master/doc/api/core/operators/max.md -- You received this message because you are subscribed to the Google Groups "Angular and AngularJS discussion" group. To unsubscribe from this group and

[AngularJS] formatting decimal numbers without displaying thousand comma

2017-08-04 Thread Stéphane Ancelot
hi, I used pipe to format number display as follow : {{ myval | number : '1.1-3' }} this works but for numbers > 1000, there are displayed like this : -- You received this message because you are subscribed to the Google Groups "Angular and AngularJS discussion" group. To unsubscribe from

Re: [AngularJS] HTML links to routes in Angular app

2017-08-04 Thread Sander Elias
Hi Joseph, On Friday, August 4, 2017 at 8:18:03 AM UTC+2, Joseph Ortega wrote: > > Stop all this please I don't want no more of this crap > Can you explain your meaning here? Is there something we can do to help? Regards Sander -- You received this message because you are subscribed to the

[AngularJS] Re: storing a max value in a component

2017-08-04 Thread Stéphane Ancelot
Thanks, I did knew this method however I managed to solve the problem ussing setter/getter : private _cursorvalue:number; @Output() cursorvalueChange: EventEmitter = new EventEmitter(); @Input() set cursorvalue(v:number){ if (v > this._cursorvalue) {

[AngularJS] Re: HTML links to routes in Angular app

2017-08-04 Thread Sander Elias
Hi Thomas, Here is a directive that takes anchors and rewrites them to use the router. import { Directive, ElementRef, ContentChildren, ViewChildren } from '@angular/core'; import { Router, RouterLink } from '@angular/router' @Directive({ selector: '[rewriteAnchors]' }) export class

[AngularJS] Re: running angular multiple apps from one folder

2017-08-04 Thread Tito
Hello, This is what I currently have. My two apps are ptcmfg and vim. app1 is point at vim and app2 is pointing at ptcmfg. the app.js for vim folder is under vim\src\server and for ptcmfg it is under ptcmfg\src\server. This is where I get cross eyed. app1.js has // app1.js var express =

[AngularJS] How to redirect to another domain from $http.post success callback?

2017-08-04 Thread James Drinkard
I'm using Angularjs 1.4.2 and I need to redirect to another URL after $http.post success callback. I know I can use something like: $window.location.href = "http://google.com;, but in this case I think need to call a function in the service from the custom directive to get the URL dynamically.

[AngularJS] Chaining SVG Animations with Angular 4

2017-08-04 Thread 'David Thompson' via Angular and AngularJS discussion
I am using Angular 4 in a cli web dev environment to make svg animations. I am having lots of trouble trying to specify an animation timeline. If I use state transitions, I don't seem to be able to use query to grab elements from my svg by class so I can animate each element individually and

[AngularJS] Re: Issue using recursion and promises

2017-08-04 Thread Sander Elias
Hi Yakove, I'm not sure if this will work, but can you try using a simple html string, in stead of an angular.element? like: const htmlElement = `<${component} id="${options.id}" options="${options}>` const compiledElement = $compile(htmlElement)(scope) (I'm using a template string here, you

[AngularJS] Re: Chaining SVG Animations with Angular 4

2017-08-04 Thread Sander Elias
Hi David, Are you trying to animate parts inside your svg, or the svg as a whole? The difference is that the whole svg is a DOM node. Things inside are not. Not sure if that's possible even. Regards Sander -- You received this message because you are subscribed to the Google Groups "Angular

[AngularJS] Re: How to redirect to another domain from $http.post success callback?

2017-08-04 Thread Sander Elias
Hi James, Well, it's definitively not a common thing to do. However, sometimes you need do to stuff like this. I know I have similar code, that deals with payment providers. If you are redirecting to another page in your own app, this is not the way to go. Regards Sander -- You received

[AngularJS] Re: Component constructor happening twice when using @Self()

2017-08-04 Thread Sander Elias
Hi Lost, Can you demonstrate your issue in a plnkr/jsbin? that would be easier to help you. Regards Sander -- You received this message because you are subscribed to the Google Groups "Angular and AngularJS discussion" group. To unsubscribe from this group and stop receiving emails from it,

[AngularJS] Re: formatting decimal numbers without displaying thousand comma

2017-08-04 Thread Sander Elias
Hi Stéphane, For this, the easiest way is create your own number formatting filter. Less code as working around the existing number filter. Regards Sander -- You received this message because you are subscribed to the Google Groups "Angular and AngularJS discussion" group. To unsubscribe

[AngularJS] Dynamic loading of components

2017-08-04 Thread joaofp
Hello, I'm starting with 2/4 angular and I'm stuck in a situation. I'm developing a single tabbed page system and would like to know if it's possible to dynamically load the components that is viewed in the tabs, so far achieved but only by declaring the components in the @Component's

[AngularJS] RE: Angular and AngularJS Logo

2017-08-04 Thread CJ Felix
Hi just wondering if can i print angular and angularjs logo to my shirt and raffle for angular philippines communit? am I having a problem doing that? Thanks -- You received this message because you are subscribed to the Google Groups "Angular and AngularJS discussion" group. To unsubscribe

[AngularJS] Re: Dynamic loading of components

2017-08-04 Thread Sander Elias
Hi, Can be done, if you use the router to lazy-load the parts into the 'view' Regards Sander -- You received this message because you are subscribed to the Google Groups "Angular and AngularJS discussion" group. To unsubscribe from this group and stop receiving emails from it, send an email

[AngularJS] Re: formatting decimal numbers without displaying thousand comma

2017-08-04 Thread Stéphane Ancelot
Le vendredi 4 août 2017 08:47:28 UTC+2, Stéphane Ancelot a écrit : > > hi, > > I used pipe to format number display as follow : > > {{ myval | number : '1.1-3' }} > > this works but for numbers > 1000, there are displayed like this : > > 12,345 > -- You received this message because you are

[AngularJS] Component constructor happening twice when using @Self()

2017-08-04 Thread losttranslation55
I have a problem with component constructor being called twice when: constructor(@Self() public ngModel: NgMode) { } ? Can somebody explain what is happening in this case? Thnx -- You received this message because you are subscribed to the Google Groups "Angular and AngularJS discussion"

[AngularJS] Carregamento dinâmico dos componentes

2017-08-04 Thread joaofp
Olá, estou iniciando com angular 2/4 e estou emperrado em uma situação. Estou desenvolvendo um sistema single page com abas e gostaria de sabe se é possível fazer o carregamento dinâmico dos componentes que serão visualizados nas abas, até agora consegui fazer mas, apenas declarando os

[AngularJS] Re: Angular and AngularJS Logo

2017-08-04 Thread Sander Elias
Hi C.J. Nope, you are permitted to do that. The logo is also under a free to use license Regards Sander -- You received this message because you are subscribed to the Google Groups "Angular and AngularJS discussion" group. To unsubscribe from this group and stop receiving emails from it,