In my Angular project, I use a specific value, which in my controller is called something like:
$scope.feature1.items.thisItem
In my view, there is a specific <div> that uses thisItem many times, and rather randomly refer to it as {{feature1.items.thisItem}} , for example:
<div id="{{feature1.items.thisItem}}header> <h1> You've reached the section about {{feature1.items.thisItem}} </h1> </div>
Can I rename this variable in a view? I would just call it one . I tried {{feature1.items.thisItem as one}} but that did not work. Any other ideas?
source share