Skip to content
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
@olostan

Description

@olostan

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:

  1. Take "hello_world" example.
  2. Into HelloWorld controller add method:
  Test() {
    String x = null;
    if (x.length==0)
      name = "Tested";
  }
  1. Into html view add
    <button ng-click="ctrl.Test()">Test</button>
  2. 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

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