Skip to content

Use constant for ng-remote-validate attribute? #29

@rebers

Description

@rebers

Hi there,

this does not seem to work:
<input type="email" class="form-control" required ng-model="order.account.email" ng-remote-validate="[AFTERCARE + '/misc/email']" ng-remote-method="POST">

My project has AFTERCARE assigned to the $rootScope and print this out works, but inside the attribute it throws an error (ReferenceError: AFTERCARE is not defined).

Any idea?

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