[AngularJS] formatting decimal numbers without displaying thousand comma
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 this group and stop receiving emails from it, send an email to angular+unsubscr...@googlegroups.com. To post to this group, send email to angular@googlegroups.com. Visit this group at https://groups.google.com/group/angular. For more options, visit https://groups.google.com/d/optout.
[AngularJS] storing a max value in a component
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 stop receiving emails from it, send an email to angular+unsubscr...@googlegroups.com. To post to this group, send email to angular@googlegroups.com. Visit this group at https://groups.google.com/group/angular. For more options, visit https://groups.google.com/d/optout.
Re: [AngularJS] HTML links to routes in Angular app
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 external html file, containing text and links, gets > loaded into one view and contains links to the second view e.g. > > ... blah blah blah.Enter your survey data into "/persons">the form and click the 'Analyze' buttonblah blah > blah... > > > How do I get links such as these, surrounded by text, to be re-purposed > correctly (into, I guess, their routerLink equivalents) so that they behave > like the routing links I have on my navbar and don't cause the app > reloading when they are clicked? > > Thanks, Tom > > -- > 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 to angular+unsubscr...@googlegroups.com. > To post to this group, send email to angular@googlegroups.com. > Visit this group at https://groups.google.com/group/angular. > For more options, visit https://groups.google.com/d/optout. > -- 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 to angular+unsubscr...@googlegroups.com. To post to this group, send email to angular@googlegroups.com. Visit this group at https://groups.google.com/group/angular. For more options, visit https://groups.google.com/d/optout.
[AngularJS] HTML links to routes in Angular app
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 external html file, containing text and links, gets loaded into one view and contains links to the second view e.g. ... blah blah blah.Enter your survey data into the form and click the 'Analyze' buttonblah blah blah... How do I get links such as these, surrounded by text, to be re-purposed correctly (into, I guess, their routerLink equivalents) so that they behave like the routing links I have on my navbar and don't cause the app reloading when they are clicked? Thanks, Tom -- 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 to angular+unsubscr...@googlegroups.com. To post to this group, send email to angular@googlegroups.com. Visit this group at https://groups.google.com/group/angular. For more options, visit https://groups.google.com/d/optout.
[AngularJS] storing a max value in a component
Hi, I have a cusror slider component that must display only the max value he got it is declared using databinding : https://groups.google.com/group/angular. For more options, visit https://groups.google.com/d/optout.
[AngularJS] Issue using recursion and promises
I seem to be having a problem with recursively updating a list of nodes. The nodes get created as elements using promises so they complete rendering themselves. export class DrawingService { drawWidget (nodeData, parent) { return this.componentsFactory.get(nodeData.component, nodeData, parent); } drawWidgetAndChildren(node, parentElement) { this.drawWidget(node, parentElement).then((element) => { this.drawWidgets(element); }); } drawWidgets(parentElement) { for (var node of this.nodes) { if (node.parentId == parentElement.attr("id")) { this.drawWidgetAndChildren(node, parentElement); } } } } export function componentsFactory ($compile, $rootScope){ 'ngInject'; return { get: function (component, options, parent) { return new Promise( (resolve,reject) => { let scope = $rootScope.$new(); options.component = component; options.resolve = resolve; scope.options = options; let element = angular.element("<" + component + " options='options' >"); element.attr("id", options.id); let compiledElement = $compile(element)(scope); parent.append(compiledElement); }); } }; The componentsFactory creates a widget element which populates itself with data and then assigns a resolve => this.options.resolve(this.element); At the time the widget resolves, its data looks correct. However, when the drawWidgetAndChildren then statement returns, the element in the then(element) contains the original value before it gets populated. Looks like something gets overwritten in memory. Would anyone have an idea what i'm doing wrong or is this an angular issue ? } -- 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 to angular+unsubscr...@googlegroups.com. To post to this group, send email to angular@googlegroups.com. Visit this group at https://groups.google.com/group/angular. For more options, visit https://groups.google.com/d/optout.
[AngularJS] I want to add datepicker on ng table filter ,please suggest how can i do it
I want to add datepicker on ng table filter ,please suggest how can i do it -- 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 to angular+unsubscr...@googlegroups.com. To post to this group, send email to angular@googlegroups.com. Visit this group at https://groups.google.com/group/angular. For more options, visit https://groups.google.com/d/optout.
[AngularJS] Re: Error 404 (Not Found) in developer tools
Hmm. I got this point. Thanks On Thursday, August 3, 2017 at 1:39:38 PM UTC+5, Sander Elias wrote: > > Hi Adnan, > > Not as far a I know. IIRC the browser throws those before JS can get > access to it. Perhaps this is solvable using a service-worker. > > 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 to angular+unsubscr...@googlegroups.com. To post to this group, send email to angular@googlegroups.com. Visit this group at https://groups.google.com/group/angular. For more options, visit https://groups.google.com/d/optout.
Re: [AngularJS] Re: Angular 1 - Custom directive for collection checkbox
Sander, Both $apply and $evalAsync worked for me. Thanks again =) 2017-07-04 0:28 GMT-03:00 Sander Elias : > Hi César, > > It did work when I did just that in your plunk. > > element.bind('click', function(event) { >_toggleSelection(); > scope.$apply() > }); > > but you need to apply it after you make your changes, perhaps that went > wrong? > > Regards > Sander > > -- > You received this message because you are subscribed to a topic in the > Google Groups "Angular and AngularJS discussion" group. > To unsubscribe from this topic, visit https://groups.google.com/d/ > topic/angular/ByjvnbMv7nA/unsubscribe. > To unsubscribe from this group and all its topics, send an email to > angular+unsubscr...@googlegroups.com. > To post to this group, send email to angular@googlegroups.com. > Visit this group at https://groups.google.com/group/angular. > For more options, visit https://groups.google.com/d/optout. > -- 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 to angular+unsubscr...@googlegroups.com. To post to this group, send email to angular@googlegroups.com. Visit this group at https://groups.google.com/group/angular. For more options, visit https://groups.google.com/d/optout.
[AngularJS] Re: Lazy loading and authorization
Hi All, I forgot to update this thread. Named chunks are now indeed possible (for a while already) in version 1.3-beta. For production you need to add a flag, in dev it's default. I'm now researching how/if I can add tokens/cookies to lazy-load requests. Turns out, that needs to be done in webpack. I'll keep you posted! -- 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 to angular+unsubscr...@googlegroups.com. To post to this group, send email to angular@googlegroups.com. Visit this group at https://groups.google.com/group/angular. For more options, visit https://groups.google.com/d/optout.
[AngularJS] Re: Error 404 (Not Found) in developer tools
Hi Adnan, Not as far a I know. IIRC the browser throws those before JS can get access to it. Perhaps this is solvable using a service-worker. 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 to angular+unsubscr...@googlegroups.com. To post to this group, send email to angular@googlegroups.com. Visit this group at https://groups.google.com/group/angular. For more options, visit https://groups.google.com/d/optout.
[AngularJS] Error 404 (Not Found) in developer tools
hi folks, return this.http.post(***) .map((data: Response) => data.json()) .catch(this.handleError) private handleError(error: Response) { if (error.status === 500 || error.status === 400 || error.status === 404 || error.status === 401) return Observable.throw(new Error(error.status.toString())); } == ** .subscribe(data => {***}, (error) => { alert("This is Error message"); }); It seems ok but I am getting error message in Developer Tools POST http://localhost:5002/*/*** 404 (Not Found) Is it possible to hide this error message in developer tools? I am waiting for your response. Thanks in Advance -- 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 to angular+unsubscr...@googlegroups.com. To post to this group, send email to angular@googlegroups.com. Visit this group at https://groups.google.com/group/angular. For more options, visit https://groups.google.com/d/optout.