What would you do to limit a scope variable to have one-time binding?
Answer / Arpit Gautam
In AngularJS, to create a one-time binding for a scope variable, you should use the '=' sign instead of '='=' (two equals signs) in your bindings. One-time binding ensures that the value from the expression on the right-hand side is evaluated once and then the resulting value is applied to the left-hand side without future updates.
| Is This Answer Correct ? | 0 Yes | 0 No |
What are the life cycle hooks order in angularjs?
What is the purpose of tsconfig.json in angularjs?
What about auto bootstrap process in angular js?
Can you differentiate javascript and angularjs?
What is data binding and its types?
What is parent scope and rootscope in angularjs?
What is service factory?
Does google use angular?
Explain service workers in angular js?
What is pure pipe in angular?
What are constructors in angular?
Is angularjs a framework?