[AngularJS] Re: retrieving focus after components updated

2019-04-09 Thread Stéphane Ancelot
No, that does not work really Le vendredi 5 avril 2019 15:06:36 UTC+2, Stéphane Ancelot a écrit : > > Hi, > > I have got a list of components organized in table rows. > > each time a row is modifed, the data are sent to the backend and returned > back to the applicatio

[AngularJS] Re: retrieving focus after components updated

2019-04-09 Thread Stéphane Ancelot
Le vendredi 5 avril 2019 15:06:36 UTC+2, Stéphane Ancelot a écrit : > > Hi, > > I have got a list of components organized in table rows. > > each time a row is modifed, the data are sent to the backend and returned > back to the application with updated fields. &g

[AngularJS] Re: retrieving focus after components updated

2019-04-09 Thread Stéphane Ancelot
Continuing more searches , I found this explanation against change propagation and more particulary ngFor I am suing to create my table. https://angular.io/api/common/NgForOf#change-propagation Using trackBy may then help solving this issue. Le vendredi 5 avril 2019 15:06:36 UTC+2, Stéphane

[AngularJS] Re: retrieving focus after components updated

2019-04-09 Thread Stéphane Ancelot
ement was focused (via mouse, keyboard, touch, or programmatically). It also allows listening for focus on descendant elements if desired."* https://material.angular.io/cdk/a11y/overview Le vendredi 5 avril 2019 15:06:36 UTC+2, Stéphane Ancelot a écrit : > > Hi, > > I have go

[AngularJS] Re: retrieving focus after components updated

2019-04-08 Thread Stéphane Ancelot
: Cannot read property 'focus' of undefined I suppose this is because the nativelement reference has been removed and replaced with a new one after view updates. Le vendredi 5 avril 2019 15:06:36 UTC+2, Stéphane Ancelot a écrit : > > Hi, > > I have got a list of component

[AngularJS] Re: retrieving focus after components updated

2019-04-08 Thread Stéphane Ancelot
Yes, but unfortunately, it does not. When focus is lost, (blur) component func is called, this func sends new data to server. The parent component table, will then receive a new sequence of all the lines of the table and update it . Le vendredi 5 avril 2019 15:06:36 UTC+2, Stéphane Ancelot

[AngularJS] retrieving focus after components updated

2019-04-05 Thread Stéphane Ancelot
Hi, I have got a list of components organized in table rows. each time a row is modifed, the data are sent to the backend and returned back to the application with updated fields. the view is rebuilt with these data and my focus lost. The problem is that I will have to focus again the field

[AngularJS] dispatching enter event

2019-04-04 Thread Stéphane Ancelot
Hi, I am trying to implement ecel like navigation with a directive. I am not able to propagate an enter event when keydown is pressed . What is the prefered way ? @HostListener('keydown.arrowup', ['$event']) @HostListener('keydown.arrowdown', ['$event']) @HostListener('keydown.arrowright',

[AngularJS] Re: is there a way to compute expression in template ?

2019-03-19 Thread Stéphane Ancelot
... I found a way using a function : [attr.transform] = "getTransform(item.graphe_x,0)" Le mardi 19 mars 2019 09:51:17 UTC+1, Stéphane Ancelot a écrit : > > > Hi, > Is there an easy way to compute expression in the template in order to > assign this kind of attrib

[AngularJS] is there a way to compute expression in template ?

2019-03-19 Thread Stéphane Ancelot
Hi, Is there an easy way to compute expression in the template in order to assign this kind of attribute : [attr.transform]="translate({{item.graphe_x}},0)" -- You received this message because you are subscribed to the Google Groups "Angular and AngularJS discussion" group. To unsubscribe

[AngularJS] Re: Adding a timed flash error message and also a popup message

2019-03-19 Thread Stéphane Ancelot
I think you are looking for toaster Le vendredi 15 mars 2019 07:12:55 UTC+1, P.Suresh Kumar a écrit : > > I'm working on a form in angularjs, asp.net and mysql server. My > requirement is to display a flashing error message when add button is > pressed without entering any input in the form

Re: [AngularJS] Re: adding dynamically components to svg view

2019-03-18 Thread Stéphane Ancelot
This solves my problem at the moment. But the idea was to keep the application composant oriented. I was following this issue https://github.com/angular/angular-cli/issues/10567#issuecomment-449568450 But I don't know if it will solve it. Le ven. 15 mars 2019 à 21:12, Sander Elias a écrit :

[AngularJS] adding dynamically components to svg view

2019-03-15 Thread Stéphane Ancelot
Hi, I am adding components to an svg view, but for some UNKNOWN reasons they are not added INSIDE the svg component but after it (see screenshot) html template : code @ViewChild('mysvg',{read: ViewContainerRef}) mysvgcontainer:ViewContainerRef ; ngAfterContentInit() { let

[AngularJS] Re: retrieving ElementRef within an event handler

2019-02-05 Thread Stéphane Ancelot
... .on("start",dragstarted) Le vendredi 1 février 2019 16:29:49 UTC+1, Stéphane Ancelot a écrit : > > Hi, > I have got to implement drag and drop in a svg d3js component. > > the svg elements are created dynamically . > > I want to retrieve the transform attribute of the

[AngularJS] Re: templating a table row as component

2019-01-29 Thread Stéphane Ancelot
Sorry, I corrected the code was wrong... Le mardi 29 janvier 2019 16:13:48 UTC+1, Stéphane Ancelot a écrit : > > > Hi, > Is there a way to use a component as row i n a table ?? the next code does > not work > > > > > > >

[AngularJS] templating a table row as component

2019-01-29 Thread Stéphane Ancelot
Hi, Is there a way to use a component as row i n a table ?? the next code does not work Liste Mouvement {{listId}} {{editId}} course Accel

[AngularJS] blur in forms

2019-01-28 Thread Stéphane Ancelot
Hi I don't manage to use blur in angular 6.2 forms, what can be wrong ?? Regards, Steph -- You received this message because you are subscribed to the Google Groups "Angular and AngularJS discussion"

[AngularJS] job

2018-11-30 Thread Stéphane Ancelot
Hi, This may be offtopic, but I am planning seeking for a job in Toronto (maybe another country if interesting job). what can I expect as an angular developper ? you can email me: sancelo...@gmail.com Thanks. Regards -- You received this message because you are subscribed to the Google

[AngularJS] Re: Angular i18 internationalization, I don't see translated text! :-(

2018-11-27 Thread Stéphane Ancelot
>From my viewpoint, I prefer using gettext po loader Le mardi 27 novembre 2018 13:58:36 UTC+1, Archimede a écrit : > > Hi all! > > in order to translate my Angular 6 page and in according with this > tutorial https://angular.io/guide/i18n I done the following simple > operations but I don't

[AngularJS] svg slider

2018-11-26 Thread Stéphane Ancelot
Hi, I want to design a custom svg slider . The problem is that I don't really know from where to start to implement drag. I have seen some snippets with rxjs https://varun.ca/drag-with-rxjs/ help is welcomed. Regards S.Ancelot -- You received this message because you are subscribed to

[AngularJS] using bootstrap studio

2018-11-07 Thread Stéphane Ancelot
Hi, I am thinking about using bootstrap studio to design my page layouts and then integrating them in angular I would like if somebody already does it. is it easy , or I may loose it if it is a bad idea ? Regards, Steph -- You received this message because you are subscribed to the Google

[AngularJS] angular projects promoting

2018-11-06 Thread Stéphane Ancelot
Hi, I have got to defend my vision of angular in front of c++ developers that want to promote QT applications . This is very difficult for myself to promote angular , I have always the next arguments facing : This is not a well known technology. There is no real applications existing ! Who

[AngularJS] http get and service usages

2018-10-24 Thread Stéphane Ancelot
Hi, I have got some fonctions that returns different kind of data on a web server basically , imagine http://localhost/data1 returns a set of json data and http://localhost/data2 returns a different kind of json data. Regarding service implementation, do I have to setup a service for access

[AngularJS] Re: server side rendering discussion

2018-09-04 Thread Stéphane Ancelot
Le mardi 4 septembre 2018 17:40:07 UTC+2, Sander Elias a écrit : > > Hi Steph, > > Angulars SSR is primarily aimed at speeding up first-page load, as you > have figured out. There are ways around this. Still, if you really need > Server-Side pages, it might be easier to resolve without

[AngularJS] Re: Angular with jQuery -> Issue

2018-09-04 Thread Stéphane Ancelot
JQuery and angular are two kinds of technology I would never mix. You should consider JQuery deprecated. Le mercredi 29 août 2018 16:46:48 UTC+2, Felipe 0liveira a écrit : > > Hey guys, what's going on? > > I have a Angular 5 project which imports on index.html my modified jQuery > lib from my

[AngularJS] server side rendering discussion

2018-09-04 Thread Stéphane Ancelot
Hi, I have an embedded system on which I want to design an gui to edit some system data , that are available through a C api. (direct access may be available thanks to a swig javascript c++ native node) I was thinking at first about server side rendering. Server side rendering would permit to

[AngularJS] accessing child elements in directive impossible

2017-10-10 Thread Stéphane Ancelot
Hi, I would like to setup an onreturndirective to give focus to next field. I may have missed something, but I think the renderer2 lacks of some functions to access child components, I can not focus next element because it is inside a div. I made a plunker of my app:

[AngularJS] Re: Share data between components using TranslateService in Angular 4+

2017-09-20 Thread Stéphane Ancelot
I made further checks in my application. The language picker changes selection language. The service is singleton, if I change pages, and request translation using the next code, the translation is well reported. However, the application does NOT refresh. how to trig a refresh ?? I displayed

[AngularJS] Re: Share data between components using TranslateService in Angular 4+

2017-09-20 Thread Stéphane Ancelot
hi! Have you succed ? because I have got a problem using the TranslateService. I made a language-picker component that is a child of the app. When it modifies the translate language, it does not change the whole app language. I don't know if it is a refresh problem . or if the TranslateService

[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 > -- Y

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

2017-08-04 Thread Stéphane Ancelot
lue) { this._cursorvalue = v; this.cursorvalueChange.emit(this._cursorvalue); } } get cursorvalue() { return this._cursorvalue; } Le jeudi 3 août 2017 17:28:44 UTC+2, Stéphane Ancelot a écrit : > > Hi, > > I have a cusror slider component that must display only t

[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

[AngularJS] storing a max value in a component

2017-08-03 Thread Stéphane Ancelot
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] Re: Angular 4 render html at runtime

2017-07-26 Thread Stéphane Ancelot
It sounds to me like adding a new component in which your template is defined. let factory = this.componentFactoryResolver.resolveComponentFactory(MyNewcomponent); let x = this.cardtempbase.createComponent(factory); your constructor : // `ViewContainerRef` from the component itself

[AngularJS] periodic refresh using xml http get request

2017-07-26 Thread Stéphane Ancelot
Hi, I have a view that will need to refresh some data on display every 300ms. I will get these data with an xml http get request. what sounds to be the best method to do the refresh loop (getting data and refresh ?) . Regards S.Ancelot -- You received this message because you are

[AngularJS] how to use webpack node loader in angular

2017-07-25 Thread Stéphane Ancelot
Hi, I would like to use shared libs using node-loader in angular. my lib is stored in build/Release/control.node file I do not manage to import it in angular Regards, steph -- You received this message because you are subscribed to the Google Groups "Angular and AngularJS discussion" group.

[AngularJS] Re: accessing model data from some components

2017-07-24 Thread Stéphane Ancelot
I submitted an answer working here : https://stackoverflow.com/questions/31026886/how-do-i-share-data-between-components-in-angular2/45274521#45274521 Le mercredi 19 juillet 2017 11:45:27 UTC+2, Stéphane Ancelot a écrit : > > Hi, > I may have misunderstood the concept of model. >

[AngularJS] accessing model data from some components

2017-07-19 Thread Stéphane Ancelot
Hi, I may have misunderstood the concept of model. I have 2 components : c1 : is a form panel with data in ngModel , data are stored in a model class. c2 : need to use data from c1 component. I am unable to access data in model from c2. please can you provide me with some tips/examples.

[AngularJS] Re: using javascript math in a component

2017-07-18 Thread Stéphane Ancelot
Next lines solved the problem in the component : Math: any; constructor() { this.Math = Math; } Le mardi 18 juillet 2017 10:27:58 UTC+2, Stéphane Ancelot a écrit : > > Hi, > It looks like I need to declare something in order being able to use Math > functions in a co

[AngularJS] Re: Is there a way to use svg iframe in angular4

2017-07-12 Thread Stéphane Ancelot
> hum... > I copy my svg file in outilsvg.component.html , that works @Component({ selector: 'app-outilsvg', templateUrl: './outilsvg.component.html', }) I rename outilsvg.component.html to zigzag.svg it does not work ...altough the ocntent is the same as previous file...

[AngularJS] Re: Is there a way to use svg iframe in angular4

2017-07-12 Thread Stéphane Ancelot
> I have not found any enableSvg() func in sanitizer, I suppose it was for > angular v1. > Maybe the problem comes from webpack loader that does not load the file ?. I have seen there was svg-url-loader : https://github.com/bhovhannes/svg-url-loader -- You received this message because

[AngularJS] Re: Is there a way to use svg iframe in angular4

2017-07-12 Thread Stéphane Ancelot
my svg file will be "dynamic" , eg modifiying a circle radius with bindings to an html input . I have directly used the svg file as templateUrl in my component. but it has not displayed. a text is displayed instead " zigzag.c1077c2dbf8b9b8aa2e9.svg" I found I had to use the sanitizer to

[AngularJS] Re: Is there a way to use svg iframe in angular4

2017-07-12 Thread Stéphane Ancelot
after some readings, using an iframe to access svg dom would be a very bad thing regarding angular . I want to manipulate svg dom too (mainly using databinding...) . That begins to sound complicated... So, the better way would be to inline svg in my component . But the inconvenient is that

[AngularJS] Re: Is there a way to use svg iframe in angular4

2017-07-11 Thread Stéphane Ancelot
I may have badly formatted my question . I want to acces an svg file embedded in a regular iframe (classic !) Le lundi 10 juillet 2017 14:59:43 UTC+2, Stéphane Ancelot a écrit : > > Hi, > I was wondering which is the right way to embed an svg iframe file in > order to man

[AngularJS] Re: Looking for a date picker control

2017-07-10 Thread Stéphane Ancelot
https://material.angular.io/components/datepicker/overview Le jeudi 6 juillet 2017 23:15:01 UTC+2, Reza Razavipour a écrit : > > I have attached a screen shot of what I need. > > Anyone knows of one and recommends it? > I am using Angular4 and SystemJS. > -- You received this message because

[AngularJS] Is there a way to use svg iframe in angular4

2017-07-10 Thread Stéphane Ancelot
Hi, I was wondering which is the right way to embed an svg iframe file in order to manipulate it's dom ? Regards, Steph -- 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