What does :: mean in angularJS

Maryam

I have seen a syntax like

<a href={{ ::something}}>some other thing</a>

What is that double colon for? What happens if it is removed?

Vivek

:: is used for one-time binding. The expression will stop recalculating once they are stable, i.e. after the first digest.

So any updates made to something will not be visible.

Collected from the Internet

Please contact [email protected] to delete if infringement.

edited at
0

Comments

0 comments
Login to comment

Related