Within my controller, I often set:
$scope.currentThing.data
For different parts of my template, sometimes I require
currentThing.data.response[0].hello
and other times
currentThing.data.otherStuff[0].goodbye
//or
currentThing.data.anotherThing[0].goodMorning
I've been contemplating the possibility of creating shortcuts for these variables directly within the templates. For instance:
{{response = currentThing.data.response[0]}}
This would allow me to simplify and use it as {{response.hello}}
.
Overall, I'm curious if it's feasible to assign temporary variables from the template without requiring data-binding. These variables only serve the purpose of generating the template before disappearing entirely.