I used angularJs for really simple functionality on an existing site.
it is something like this
<div ng-app>
<div ng-controller="TermsController">
<input type="checkbox" ng-model="terms.agree" />
<input type="submit" value="{{terms.label}}" .. />
</div>
</div>
I plug angular in the middle of the page and everything is working fine except the fact that angular loads quite slow and user can see {{terms.label}} for a moment before angular evaluates its value.
i tried to do something like
<input type="submit" value="Default value" ng-model="terms.label" .. />
but it never updated the value of the submit button. anyway I would bet I've seen something like this, but maybe input field was without value attribute and only model.
any guidance as to how to setup the template before angularJs loads are appreciated.
I know that I can set some preloader and replace it once angular has loaded, but for this simple task it seems to be an overkill.
thanks for help