Skip to content

Instantly share code, notes, and snippets.

@n370
Created June 30, 2015 20:52
Show Gist options
  • Select an option

  • Save n370/a134310cc295ab3d3536 to your computer and use it in GitHub Desktop.

Select an option

Save n370/a134310cc295ab3d3536 to your computer and use it in GitHub Desktop.
The npm module gulp-ng-annotate don't annotate my controller function.
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
}
});
@n370
Copy link
Author

n370 commented Jul 1, 2015

Here's the explanation:
olov/ng-annotate#62

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment