阅读背景:

AngularJS/TypeScript由于服务导致模块实例化失败

来源:互联网 

I have a service:

我有一个服务:

module app {
    export interface ISomeService {
        doSomething(): string;
    }

    export class SomeService implements ISomeService {
        doSomething() {
            return "haaay.";
        };
    }

    angular.module('app').service('someService', SomeService);
}
module app {
    



你的当前访问异常,请进行认证后继续阅读剩余内容。

分享到: