Does {{'any'}} have an observer? Is {{:: 'any'}} a performance improvement?

I am going to improve the performance of my angular application. Therefore, I decided to use {{:: variable}} (> angular 1.3) more often. For translations, I used the link {{'key.header' | translate}}. Is performance improvement possible if I use {{: 'key.header' | translate}} or does angular know that these lines will not change?

thank

+4
source share
1 answer

angular, , {{::variable}}. , , angular , ( ) . ,

less watchers = better performance

:

angular, ::, . ( ), , , .

:: angular, . :: - , .

+2

Source: https://habr.com/ru/post/1650870/


All Articles