Closed 0x00000001A closed 8 years ago
My fault, sorry pls
Here is how need include controller properly:
let uiModule = angular.module('ui', [])
.directive('uiDropdown', ($document) => {
"ngInject";
return new uiDropdown($document);
})
.name;
or
let uiModule = angular.module('ui', [])
.directive('uiDropdown', /*@ngInject*/ ($document) => new uiDropdown($document))
.name;
as you like
I have this configuration:
package.json:
.babelrc
webpack.config.js
gulp task
I have next directive:
Here is how i include directive:
And console.log gives next output:
But this example will work properly: