angularjs-decorators

1.0.0 • Public • Published

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
    }
}

Package Sidebar

Install

npm i angularjs-decorators

Weekly Downloads

0

Version

1.0.0

License

MIT

Last publish

Collaborators

  • khorzu