Skip to content

is ng-init necessary? #6

Description

@cameron

https://github.com/commonHR/commonApp/blob/master/www/templates/conversations.html#L1

angular docs say ng-init should only be used to alias properties in an ng-repeat. any reason you can't do what you're doing here in a controller?

reason being that if you can do the same thing two ways, pick the one that is the most familiar or otherwise widely used in order to reduce cognitive overhead for new developers.

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