A beginner in angular2. A documentation of ngModel in angular1 stated that it can be used with , and . Does this apply to the ngModel usage with 2 way data binding in angular2 too ? or can it be used with elements like
Asked
Active
Viewed 767 times
0

Srivatsa M Hegde
- 31
- 1
- 1
- 3
-
https://angular.io/docs/ts/latest/guide/template-syntax.html#!#two-way – Suraj Rao Feb 06 '17 at 05:42
-
I guess you are aware of two way binding in angular 2 but you are asking if we can use that in li or a elements right? If this is what you are looking for . the answer is no we cannot . For such a scenario you have to use div element and for a tag use [src] . Hope this is what you were looking at – Rahul Singh Feb 06 '17 at 05:54
-
Hey Rahul. Yes that was exactly my doubt. Thanks for clearing it. btw can you if possible give a code snippet for this alternative usage ? will find it extremely helpful. Thanks again was really a great help. – Srivatsa M Hegde Feb 06 '17 at 09:03