[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: How to restrict Parent Component ngOnInit Method call when routing child Component

2018-10-24 Thread Sander Elias
Hi Prashant, This should be taken care of automatically. Can you tell us what is giving you trouble? 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

[AngularJS] Dynamic columns in angular datatable

2018-10-24 Thread Komal Shah
We are using $http to get array of columns and then bind it to dtColumns object of angular datatable. But before the bind code is called, 'aDatasort is not defined ' error occurs. Below is the html code Below is the Controller code ($scope.col is the array of columns which are build using

Re: [AngularJS] Re: Regarding the better bet for PWA Apps

2018-10-24 Thread Ramesh Krishnamurthy
We are still early in the process while we do have customers who are looking for the solution we have an alternative which is ASP.net based but the problem is that it is not a PWA application. For PWA functionalities we had used AngularJS + Ionic. Since we are early in the game we are quite happy

[AngularJS] Re: Regarding the better bet for PWA Apps

2018-10-24 Thread Sander Elias
Hi Ramesh, That is hard to answer without you providing your current state? How far along the road are you? Planning? have a small prototype in AngularJS? Is your app almost complete? moving to angular 7+ has a lot of advantages, but they depend on your current state. Regards Sander -- You

[AngularJS] Re: How to prevent parent ngOnInit()

2018-10-24 Thread Zlatko Đurić
Hi Prashant, TL:DR; If you have something happening in your component, and you want to influence something up the hierarchy tree, you set this value in a service injected to both child and parent, and then move the parent's code in question from ngOnInit to a method that fires (or not)

[AngularJS] String Interpolation in child component is not getting updated when data passed from the observable subscriber of parent component on first time when we load the application in Angular 6

2018-10-24 Thread Anuj Tayal
Hi, In my Angular Application I am binding a @input variable in html template of child component using interpolation method, and the input variable gets updated from service subscriber of parent component. The subscriber takes the data from a service asynchronously and then @input variable

[AngularJS] Re: String Interpolation in child component is not getting updated when data passed from the observable subscriber of parent component on first time when we load the application in Angular

2018-10-24 Thread Sander Elias
Hi Anuj, Can you show us the code? That makes it easier to understand what you are asking. 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,