[AngularJS] Injecting header token with all REST API calls in Angular2

2017-01-20 Thread Anil Mathew
Hi, I am using Angular2 and I am trying to find a way to send some header to the server for every REST API call? I am trying to avoid writing code to set the header for each API call though. Can anyone please help me how to do this? Thanks -- You received this message because you

[AngularJS] Angular2 - How to get the selected value from the SELECT option list

2017-01-19 Thread Anil Mathew
Hi, I have the below code in the view: Select your user {{user.username}} Continue In the Controller, I have the below code: validateUsername(): void { console.log("selected user Id:"+ this.selectedUserId) } For some reason, I am

[AngularJS] Re: ngb-tabset with events(click) in angular2

2017-01-12 Thread Anil Mathew
Thank you Sanders! In fact the issue was the event name. i.e it should like below: And I was trying with (change), (click) etc.. Anil On Wednesday, January 11, 2017 at 8:43:55 PM UTC-8, Sander Elias wrote: > > Hi Anil, > > > Did you define "callMyFunction" on the ngb-tab-title components >

[AngularJS] ngb-tabset with events(click) in angular2

2017-01-11 Thread Anil Mathew
I am using "ngb-tabset" to display tabs in the angular2. I am trying to add an event to a tab like below: I can't figure out why the above click function is not calling my function. Can someone please help? Thanks! -- You received this message because you

[AngularJS] Pre-select a SELECT OPTION value in AngularJS2

2016-11-21 Thread Anil Mathew
Hi, Can someone please let me know how do I pre-select the initial value on my code? Below is my code: Please select {{i}} Thanks -- You received this message because you are subscribed to the Google Groups "Angular" group. To unsubscribe from this group and stop receiving

[AngularJS] AngularJS2 with Modal window

2016-10-26 Thread Anil Mathew
I am trying to get a Modal working for the AngularJS2 and it simply doesn't work. I have seen couple of examples while searching, but none of them really work as the AngularJS2 changed after those. i,e no directives etc.. Can anyone please help me on this? -- You received this message

[AngularJS] How to show Active tab using ng-class

2014-09-04 Thread Anil Mathew
I have a code like this - http://plnkr.co/edit/Z2HrNB9yKq3sdKvhEth0?p=catalogue I am trying to show the selected tab as active, while the others being non-active. Any idea how I can do this using angular js? Thanks. -- You received this message because you are subscribed to the Google Groups