[AngularJS] Re: Pagination with server call

2019-04-09 Thread Dev C
I need more like api based. On Tuesday, April 9, 2019, Tito wrote: > http://jasonwatmore.com/post/2016/01/31/angularjs-pagination > -example-with-logic-like-google > > > > On Tuesday, April 9, 2019 at 9:07:45 AM UTC-7, Dev C wrote: >> >> I have An Api which returns the data with pager object

[AngularJS] Re: Pagination with server call

2019-04-09 Thread Dev C
This don't hit to api.. On Tuesday, April 9, 2019, Tito wrote: > http://jasonwatmore.com/post/2016/01/31/angularjs-pagination > -example-with-logic-like-google > > > > On Tuesday, April 9, 2019 at 9:07:45 AM UTC-7, Dev C wrote: >> >> I have An Api which returns the data with pager object like

[AngularJS] Re: Pagination with server call

2019-04-09 Thread Tito
http://jasonwatmore.com/post/2016/01/31/angularjs-pagination-example-with-logic-like-google On Tuesday, April 9, 2019 at 9:07:45 AM UTC-7, Dev C wrote: > > I have An Api which returns the data with pager object like page number > and page size, everytime i click on pagination control it should

[AngularJS] Pagination with server call

2019-04-09 Thread Dev C
I have An Api which returns the data with pager object like page number and page size, everytime i click on pagination control it should goto server and retrieve data based on page i click, so in parameter i will always send http: domain/Api/v1/pagination?pagenumber=1 size=10 Please help if

[AngularJS] Mat-table represent one entry for parent node with another child should not display parent node

2019-04-09 Thread Rohit kshirsagar
This is my json used by datasource.how can I represent data on mat-table see attached image. I am beginner to Angular. Help me to understand how can i represent this json to my table with different format. [ { "name":"rohit", "details":[ {

[AngularJS] How to represent json in different format on mat-table

2019-04-09 Thread Rohit kshirsagar
I am beginner to Angular. I want to represent my json in different way. Parent node should not be repeated for each row (only allowed to first row). First row will contain Parent Node info + child node info for second row onward Parent data will be blank and only child data will be represent.

[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 application with updated fields.

[AngularJS] Re: retrieving focus after components updated

2019-04-09 Thread Stéphane Ancelot
I finallyt solved the problem using a trackBy function associated to ngFor. This trackby function always returns the same Value. Thus, the DOM is never scratched and only the values of my fields on the screen updated. This seems being working when I add a line at end, a new line is created

[AngularJS] Re: Modal window and dynamic content

2019-04-09 Thread Emil Stoyanov
Hi, Did You try this: http://dwmkerr.github.io/angular-modal-service/ Works good for me, it is a service, so you can load different templates in each situation. On Monday, April 8, 2019 at 4:31:26 PM UTC+3, Dev C wrote: > > I need to have dynamic modal window at many places so i need to have >

[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
So , I am thinking to another implementation. The aim of my focus management was trying to implement an excel like navigation. To do this, I created a directive associated to each input. And then being managed in the childs row component. I think this should be managed by the parent table