angularjs-decorators
v1.0.0
Published
An Angular2 like Typescript wrapper for Angular 1.x
Downloads
4
Readme
angularjs-decorators
An Angular2 like Typescript wrapper for Angular 1.x
Install
npm i --save angularjs-decorators
Dependencies
Usage
Module
import {NgModule, INgModule} from 'angularjs-decorators';
NgModule({
name: 'app',
imports: [
'ui.router',
'ngMaterial',
],
components: [],
services: [],
directives: [],
})
class App implements INgModule{
constructor(module: ng.IModule) {
// TODO
}
/** @ngInject */
config($urlRouterProvider) {
// TODO
}
/** @ngInject */
run($state: ng.ui.IStateService, $rootScope) {
// TODO
}
}