Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update {{form.title}} to use ng-bind #43

Open
jsarman opened this issue May 3, 2017 · 0 comments
Open

Update {{form.title}} to use ng-bind #43

jsarman opened this issue May 3, 2017 · 0 comments

Comments

@jsarman
Copy link

jsarman commented May 3, 2017

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant