This repository was archived by the owner on Feb 22, 2018. It is now read-only.
This repository was archived by the owner on Feb 22, 2018. It is now read-only.
'Undefined function' when calling functions which throw exceptions #971
Closed
Description
If in any code that is invoked by AngularDart invoked a code that raise NoSuchMethod
then AngularDart shows Undefined function
exception, however function is defined.
Steps to reproduce:
- Take "hello_world" example.
- Into
HelloWorld
controller add method:
Test() {
String x = null;
if (x.length==0)
name = "Tested";
}
- Into html view add
<button ng-click="ctrl.Test()">Test</button>
- Run application in Dartium and press "Test" button.
You'll see Undefined function Test
. However Test
is defined in controller.
It can confuse users, as even if there is mistake somewhere inside of the call. It took me some time to understand what is the problem.
Metadata
Metadata
Assignees
Labels
No labels