1.0.0 • Published 7 years ago

angularjs-decorators v1.0.0

Weekly downloads
3
License
MIT
Repository
github
Last release
7 years ago

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