What would you do to limit a scope variable to have one-time binding?



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

Post New Answer

More AngularJS Interview Questions

What are the life cycle hooks order in angularjs?

1 Answers  


What is the purpose of tsconfig.json in angularjs?

1 Answers  


What about auto bootstrap process in angular js?

1 Answers  


Can you differentiate javascript and angularjs?

1 Answers  


What is data binding and its types?

1 Answers  


What is parent scope and rootscope in angularjs?

1 Answers  


What is service factory?

1 Answers  


Does google use angular?

1 Answers  


Explain service workers in angular js?

1 Answers  


What is pure pipe in angular?

1 Answers  


What are constructors in angular?

1 Answers  


Is angularjs a framework?

1 Answers  


Categories