I didn’t find it in the documentation, I also found it in Google (maybe I couldn’t correctly formulate the question in English)
There is a controller with a deep ensemble. Such
{ user:{ sm:{ general:{ app:[], rights:[], phone:'', options:{ .... } } } } } I want to fill in the template starting from user.sm.general.options and really do not want to insert this very long prefix everywhere.
Dreaming of something like (ng-use is from the ceiling)
<ng-use="user.sm.general.options as opt"> логин: {{opt.login}} пароль: {{opt.pass}} роль: {{opt.role}} </ng-use>
ng-initdoes practically what is necessary, but it is easier to save the desired object to a variable inside the controller itself and use it - Grundy<difv ng-init="opt = user.sm.general.options"> логин: {{opt.login}} пароль: {{opt.pass}} роль: {{opt.role}} </ng-use>. Or in the controller$scope.opt=user.sm.general.options. By the way, there is an option to write the directiveng-use- Stepan Kasyanenko