angular-schema-form-bootstrap
angular-schema-form-bootstrap copied to clipboard
Update {{form.title}} to use ng-bind
Enhancement
As a user/developer, when I created a large form I noticed several {{form.title}} after initial angular compile and before data was populated. I should be able to see nothing.
Expected behaviour
I expected to not see any handlebars notation.
Actual behaviour
It actually displays {{form.title}} for every label that only has <label ...> {{form.title}} </label>
Proposed fix
Use <label ... ng-bind="::form.title"></label> so that the nothing in the label tag is displayed until the bind occurs. Also for other floating {{form.variableName}} switch to <span ng-bind="::form.variableName"></span>
Not Tested
Maybe the :: one way binding is overkill, but it was all I needed in my test cases.
Version Tested
1.0.0-alpha.4