Angular 2 one way data binding like we do in angular 1 using ::

By Ashish Ratan

Is there any way in angular 2 so that we can achieve one-way data binding like we have done in angular 1.

<input type="text" ng-model="name"> Name is {{name}} <br> one way name is {{:: name}}

How we can achieve this in Angular 2 way. what alternatives we have for this.

Source: Stack Overflow

    

Share it with your friends!

    Fatal error: Uncaught Exception: 12: REST API is deprecated for versions v2.1 and higher (12) thrown in /home/content/19/9652219/html/wp-content/plugins/seo-facebook-comments/facebook/base_facebook.php on line 1273