但是当我在上面调用一个方法时,它会抛出TypeError: routingService.getRequestedPage is not a function。src/app/nav/nav.component.ts构造函数:
constructor(private templateService: TemplateService, private routingService
我需要用我自己的函数扩展q.promise,我尝试了:defer.promise.prototype.funcName = function () {}TypeError: Cannot set property 'funcName' of undefined
这是我的实际问题:我需要一个别名,用于.then()女巫将一个操作的名称