Created
June 30, 2015 20:52
-
-
Save n370/a134310cc295ab3d3536 to your computer and use it in GitHub Desktop.
The npm module gulp-ng-annotate don't annotate my controller function.
This file contains hidden or 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
| angular.module('dashboard') | |
| /** | |
| * This directive creates the Settings Form. | |
| * @summary Usage: <printer-settings settings=[MultidimensionalArray]></printer-settings> | |
| */ | |
| .directive('printerSettings', function($filter, $timeout, RecursionHelper) { | |
| 'use strict'; | |
| return { | |
| scope: { | |
| settings: '=' | |
| }, | |
| templateUrl: '/some/path.html', | |
| compile: compile, | |
| restrict: 'E', | |
| transclude: true, | |
| controller: controller | |
| }; | |
| function compile(element) { | |
| return RecursionHelper.compile(element); | |
| } | |
| function controller($scope) { | |
| // use $scope | |
| } | |
| }); |
Author
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Here's the explanation:
olov/ng-annotate#62