Skip to content
This repository has been archived by the owner on Feb 22, 2018. It is now read-only.

ng-model error message could be better #424

Closed
traceypowersg opened this issue Jan 21, 2014 · 0 comments
Closed

ng-model error message could be better #424

traceypowersg opened this issue Jan 21, 2014 · 0 comments
Milestone

Comments

@traceypowersg
Copy link

I have a controller with an error.

My template (below) has an ng-model directive that wants a controller field called comments.

Template:

    <textarea ng-model="ctrl.comments">
    </textarea>

But I've forgotten to put the field comments into the controller.

The error message I get does not help me at all:

NoSuchMethodError : method not found: 'getField'
Receiver: null
Arguments: [Instance of 'Symbol']

It would be nice if it gave me a hint that it was trying to call a getter for comments and failed in its attempt.

Is it possible for this error message to give any clearer indication of what went wrong? Instance of 'Symbol' and Receiver: null give me nothing to go on.

Thanks

@ghost ghost assigned jbdeboer Jan 22, 2014
jbdeboer added a commit to jbdeboer/angular.dart that referenced this issue Feb 5, 2014
jbdeboer added a commit to jbdeboer/angular.dart that referenced this issue Feb 5, 2014
jbdeboer added a commit to jbdeboer/angular.dart that referenced this issue Feb 5, 2014
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Development

Successfully merging a pull request may close this issue.

2 participants