forked from angular/angular.js
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix ($compile): keep prototype properties for template URL directives
Previously, if a directive definition object was defined with methods like `compile` provided on the prototype rather than the instance, the Angular compiler failed to use these methods when the directive had a `templateURL`. This change ensures that these prototypical methods are not lost. This enables developers to define their directives using "classes" such as in CoffeeScript or ES6. Closes angular#10926
- Loading branch information
1 parent
0d42426
commit 6c6a408
Showing
2 changed files
with
50 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters