0

I have a two way binding variable in my view and i need to make it as a one way binding. {{myMsg}} I need to make it as single binding. How could i achieve it?

2
  • 1
    Possible duplicate of One way binding in angularjs 1.4 Commented Apr 18, 2017 at 10:26
  • Do you want to allocate same value to two models? Commented Apr 18, 2017 at 10:46

1 Answer 1

1

You can achieve it either using ng-bind directive or using 2 full colons in front of expression. eg: {{::myMsg}} or using ng-bind="myMsg"

Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.