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.

Directive require doesn't throw without link... #3941

Closed
@iammerrick

Description

@iammerrick
angular.module('app', []);
angular.module('app').directive('one', function() {
  return {
    require: 'ngModel',
    template: '<div>{{ngModel}}</div>'
  }
});
<div one></div>

This won't throw unless a link function is added to the directive...

http://jsbin.com/ikIpuri/1/edit

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions