Say I have the following line in a controller hmmCtrl:
$rootScope.value = 1;
$scope.hmm = "{{$root.value}}"
And in html, if I have:
<section ng-controller="hmmCtrl">
{{hmm}}
</section>
Currently it displays:
{{$root.value}}
but I actually want to see the value of $root.value:
1
In the long run I plan to put the $root.value in a json file that is going to be parsed by the hmmCtrl.
How can I make this happen?