Skip to content
This repository was archived by the owner on Apr 12, 2024. It is now read-only.
This repository was archived by the owner on Apr 12, 2024. It is now read-only.

ngModel generates errors when in a form element with a ngController directive #12029

Closed
@neoGeneva

Description

@neoGeneva

The following HTML snippet generates errors under 1.4.0, but works with 1.3.15.

ngModelDirective generates errors in ngModelPreLink because it inadvertently references myController rather than the expected FormController.

<html>
<body ng-app="myApp">
    <form ng-controller="myController">
        <input ng-model="myModel" />
    </form>
    <script src="http://cdnjs.cloudflare.com/ajax/libs/angular.js/1.4.0/angular.js"></script>
    <script>
        angular.module("myApp", []).controller("myController", function () { 
                  return {}; 
                })
    </script>
</body>
</html>

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions