How can we show that a scope variable should have one-time binding only?



How can we show that a scope variable should have one-time binding only?..

Answer / Kunal Kumar

In AngularJS, to show that a scope variable should have one-time binding only, you can use the '=' sign in your HTML. One-Time binding ensures that the expression is evaluated once and does not update further. It's read-only and used when you don't want to change the value from the DOM or you know that the value will never be updated.

Is This Answer Correct ?    0 Yes 0 No

Post New Answer

More AngularJS Interview Questions

Explain deep linking in angularjs?

1 Answers  


What is angular router?

1 Answers  


What is ViewEncapsulation?

1 Answers  


What is the scope in angularjs?

1 Answers  


What is ecmascript ?

1 Answers  


Explain the difference between angular.js and backbone.js?

1 Answers  


What is component in angular?

1 Answers  


What components can be defined within AngularJS modules?

1 Answers  


What are the difference between directive and component in angular 4?

1 Answers  


Explain the compilation process of angularjs?

1 Answers  


What is shadow dom? How is it helping angular 2 to perform better?

1 Answers  


What is the use of ngif directive?

1 Answers  


Categories