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.

make $compile accept DDO without a factory #12397

Closed
@jansepke

Description

@jansepke

could we add the possibility to define a directive without a factory. this would only be syntactic sugar and I could make a PR for this. This would make the creation of directives easier for beginners.

angular.module('sample', []).directive('test', {
    template: 'Hello World!'
});

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions