Skip to content

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

Open
@jsarman

Description

@jsarman

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions