42 | var A,E={__UNINITIALIZED__:!0},k=function(){function t(t,e,n,r,o,i,s,a,c,u){this.element=t,this.attrs=e,this.scope=n,this.ngModel=r,this.parentInjector=o,this.$injector=i,this.$compile=s,this.$parse=a,this.componentFactory=c,this.wrapCallback=u,this.implementsOnChanges=!1,this.inputChangeCount=0,this.inputChanges={},this.componentScope=n.$new()}return t.prototype.compileContents=function(){var t=this,e=[],n=this.groupProjectableNodes().map((function(e){return t.$compile(e)}));return this.element.empty(),n.forEach((function(n){n(t.scope,(function(n){e.push(n),t.element.append(n)}))})),e},t.prototype.createComponent=function(t){var n=e.Injector.create({providers:[{provide:"$scope",useValue:this.componentScope}],parent:this.parentInjector,name:"DowngradeComponentAdapter"});this.componentRef=this.componentFactory.create(n,t,this.element[0]),this.viewChangeDetector=this.componentRef.injector.get(e.ChangeDetectorRef),this.changeDetector=this.componentRef.changeDetectorRef,this.component=this.componentRef.instance;var r=this.componentRef.injector.get(e.Testability,null);r&&this.componentRef.injector.get(e.TestabilityRegistry).registerApplication(this.componentRef.location.nativeElement,r),function o(t,e){t&&function n(t){return"function"==typeof t.writeValue&&"function"==typeof t.registerOnChange}(e)&&(t.$render=function(){e.writeValue(t.$viewValue)},e.registerOnChange(t.$setViewValue.bind(t)),"function"==typeof e.registerOnTouched&&e.registerOnTouched(t.$setTouched.bind(t)))}(this.ngModel,this.component)},t.prototype.setupInputs=function(t,n){var r=this;void 0===n&&(n=!0);for(var o=this.attrs,i=this.componentFactory.inputs||[],s=function(t){var e,n,s=new d(i[t].propName,i[t].templateName),c=null;if(o.hasOwnProperty(s.attr)){var u=(e=s.prop,n=E,function(t){O(n,t)||(n===E&&(n=t),r.updateInput(e,n,t),n=t)});o.$observe(s.attr,u);var p=a.componentScope.$watch((function(){p(),p=null,u(o[s.attr])}))}else o.hasOwnProperty(s.bindAttr)?c=o[s.bindAttr]:o.hasOwnProperty(s.bracketAttr)?c=o[s.bracketAttr]:o.hasOwnProperty(s.bindonAttr)?c=o[s.bindonAttr]:o.hasOwnProperty(s.bracketParenAttr)&&(c=o[s.bracketParenAttr]);if(null!=c){var l=function(t){return function(e,n){return r.updateInput(t,n,e)}}(s.prop);a.componentScope.$watch(c,l)}},a=this,c=0;c<i.length;c++)s(c);var u=function(){return r.changeDetector.detectChanges()},p=this.componentFactory.componentType.prototype;if(this.implementsOnChanges=!(!p||!p.ngOnChanges),this.componentScope.$watch((function(){return r.inputChangeCount}),this.wrapCallback((function(){if(r.implementsOnChanges){var t=r.inputChanges;r.inputChanges={},r.component.ngOnChanges(t)}r.viewChangeDetector.markForCheck(),n||u()}))),n&&this.componentScope.$watch(this.wrapCallback(u)),t||!n)var l=this.componentScope.$watch((function(){l(),l=null,r.parentInjector.get(e.ApplicationRef).attachView(r.componentRef.hostView)}))},t.prototype.setupOutputs=function(){for(var t=this.attrs,e=this.componentFactory.outputs||[],n=0;n<e.length;n++){var r=new d(e[n].propName,e[n].templateName),o=r.bindonAttr.substring(0,r.bindonAttr.length-6),i="[("+r.bracketParenAttr.substring(2,r.bracketParenAttr.length-8)+")]";t.hasOwnProperty(o)&&this.subscribeToOutput(r,t[o],!0),t.hasOwnProperty(i)&&this.subscribeToOutput(r,t[i],!0),t.hasOwnProperty(r.onAttr)&&this.subscribeToOutput(r,t[r.onAttr]),t.hasOwnProperty(r.parenAttr)&&this.subscribeToOutput(r,t[r.parenAttr])}},t.prototype.subscribeToOutput=function(t,e,n){var r=this;void 0===n&&(n=!1);var o=this.$parse(e),i=o.assign;if(n&&!i)throw new Error("Expression '"+e+"' is not assignable!");var s=this.component[t.prop];if(!s)throw new Error("Missing emitter '"+t.prop+"' on component '"+v(this.componentFactory.componentType)+"'!");s.subscribe({next:n?function(t){return i(r.scope,t)}:function(t){return o(r.scope,{$event:t})}})},t.prototype.registerCleanup=function(){var t=this,n=this.componentRef.injector.get(e.TestabilityRegistry),r=this.wrapCallback((function(){return t.componentRef.destroy()})),o=!1;this.element.on("$destroy",(function(){return t.componentScope.$destroy()})),this.componentScope.$on("$destroy",(function(){o||(o=!0,n.unregisterApplication(t.componentRef.location.nativeElement),r())}))},t.prototype.getInjector=function(){return this.componentRef.injector},t.prototype.updateInput=function(t,n,r){this.implementsOnChanges&&(this.inputChanges[t]=new e.SimpleChange(n,r,n===r)),this.inputChangeCount++,this.component[t]=r},t.prototype.groupProjectableNodes=function(){return function t(e,n){for(var r=[],o=0,i=e.length;o<i;++o)r[o]=[];for(var s=0,a=n.length;s<a;++s){var c=n[s],u=R(c,e);null!=u&&r[u].push(c)}return r}(this.componentFactory.ngContentSelectors,this.element.contents())},t}();function R(t,e){for(var n=[],r=-1,o=0;o<e.length;o++){var i=e[o];"*"===i?r=o:T(t,i)&&n.push(o)}return n.sort(),-1!==r&&n.push(r),n.length?n[0]:null}function T(t,e){if(!A){var n=Element.prototype;A=n.matches||n.matchesSelector||n.mozMatchesSelector||n.msMatchesSelector||n.oMatchesSelector||n.webkitMatchesSelector}return t.nodeType===Node.ELEMENT_NODE&&A.call(t,e)}
|
49 | var P=function(){function t(){this.resolved=!1,this.callbacks=[]}return t.all=function(e){var n=new t,r=0,o=[],i=function(t,i){o[t]=i,++r===e.length&&n.resolve(o)};return e.forEach((function(t,e){!function n(t){return!!t&&$(t.then)}(t)?i(e,t):t.then((function(t){return i(e,t)}))})),n},t.prototype.resolve=function(t){this.resolved||(this.value=t,this.resolved=!0,this.callbacks.forEach((function(e){return e(t)})),this.callbacks.length=0)},t.prototype.then=function(t){this.resolved?t(this.value):this.callbacks.push(t)},t}(),D=function(t){function e(e){var n=t.call(this)||this;return n.element=e,n.injectorKey=y(h),e.data(n.injectorKey,n),n}return i(e,t),e.prototype.resolve=function(e){this.element.data(this.injectorKey,e),this.element=null,t.prototype.resolve.call(this,e)},e}(P),S=/^(\^\^?)?(\?)?(\^\^?)?/,I=function(){function t(e,n,r,o){this.injector=e,this.name=n,this.$injector=e.get("$injector"),this.$compile=this.$injector.get("$compile"),this.$controller=this.$injector.get("$controller"),this.element=r.nativeElement,this.$element=l(this.element),this.directive=o||t.getDirective(this.$injector,n)}return t.getDirective=function(t,e){var n=t.get(e+"Directive");if(n.length>1)throw new Error("Only support single directive definition for: "+e);var r=n[0];return r.compile&&!r.link&&_(e,"compile"),r.replace&&_(e,"replace"),r.terminal&&_(e,"terminal"),r},t.getTemplate=function(t,e,n,r){if(void 0===n&&(n=!1),void 0!==e.template)return M(e.template,r);if(e.templateUrl){var o=t.get("$templateCache"),i=M(e.templateUrl,r),s=o.get(i);if(void 0!==s)return s;if(!n)throw new Error("loading directive templates asynchronously is not supported");return new Promise((function(e,n){t.get("$httpBackend")("GET",i,null,(function(t,r){200===t?e(o.put(i,r)):n("GET component template from '"+i+"' returned '"+t+": "+r+"'")}))}))}throw new Error("Directive '"+e.name+"' is not a component, it is missing template.")},t.prototype.buildController=function(t,e){var n=this.$controller(t,{$scope:e,$element:this.$element},null,this.directive.controllerAs);return this.$element.data(y(this.directive.name),n),n},t.prototype.compileTemplate=function(e){return void 0===e&&(e=t.getTemplate(this.$injector,this.directive,!1,this.$element)),this.compileHtml(e)},t.prototype.onDestroy=function(t,e){e&&$(e.$onDestroy)&&e.$onDestroy(),t.$destroy(),l.cleanData([this.element]),l.cleanData(this.element.querySelectorAll("*"))},t.prototype.prepareTransclusion=function(){var t=this,e=this.directive.transclude,n=this.extractChildNodes(),r=function(t,e){return e(o,t=t||{$destroy:function(){}})},o=n;if(e){var i=Object.create(null);if("object"==typeof e){o=[];var s=Object.create(null),a=Object.create(null);Object.keys(e).forEach((function(t){var n=e[t],r="?"===n.charAt(0);n=r?n.substring(1):n,s[n]=t,i[t]=null,a[t]=r})),n.forEach((function(t){var e=s[function n(t){return t.replace(f,"").replace(g,(function(t,e){return e.toUpperCase()}))}(t.nodeName.toLowerCase())];e?(a[e]=!0,i[e]=i[e]||[],i[e].push(t)):o.push(t)})),Object.keys(a).forEach((function(e){if(!a[e])throw new Error("Required transclusion slot '"+e+"' on directive: "+t.name)})),Object.keys(i).filter((function(t){return i[t]})).forEach((function(t){var e=i[t];i[t]=function(t,n){return n(e,t)}}))}r.$$slots=i,o.forEach((function(t){t.nodeType!==Node.TEXT_NODE||t.nodeValue||(t.nodeValue="")}))}return r},t.prototype.resolveAndBindRequiredControllers=function(t){var e=this.getDirectiveRequire(),n=this.resolveRequire(e);if(t&&this.directive.bindToController&&N(e)){var r=n;Object.keys(r).forEach((function(e){t[e]=r[e]}))}return n},t.prototype.compileHtml=function(t){return this.element.innerHTML=t,this.$compile(this.element.childNodes)},t.prototype.extractChildNodes=function(){for(var t,e=[];t=this.element.firstChild;)this.element.removeChild(t),e.push(t);return e},t.prototype.getDirectiveRequire=function(){var t=this.directive.require||this.directive.controller&&this.directive.name;return N(t)&&Object.keys(t).forEach((function(e){var n=t[e],r=n.match(S);n.substring(r[0].length)||(t[e]=r[0]+e)})),t},t.prototype.resolveRequire=function(t,e){var n=this;if(t){if(Array.isArray(t))return t.map((function(t){return n.resolveRequire(t)}));if("object"==typeof t){var r={};return Object.keys(t).forEach((function(e){return r[e]=n.resolveRequire(t[e])})),r}if("string"==typeof t){var o=t.match(S),i=o[1]||o[3],s=t.substring(o[0].length),a=!!o[2],c=!!i,u="^^"===i,p=y(s),l=u?this.$element.parent():this.$element,h=c?l.inheritedData(p):l.data(p);if(!h&&!a)throw new Error("Unable to find required '"+t+"' in upgraded directive '"+this.name+"'.");return h}throw new Error("Unrecognized 'require' syntax on upgraded directive '"+this.name+"': "+t)}return null},t}();function M(t){for(var e=[],n=1;n<arguments.length;n++)e[n-1]=arguments[n];return $(t)?t.apply(void 0,a(e)):t}function N(t){return t&&!Array.isArray(t)&&"object"==typeof t}function _(t,e){throw new Error("Upgraded directive '"+t+"' contains unsupported feature: '"+e+"'.")}var B=/([A-Z])/g,U={__UNINITIALIZED__:!0},F=function(){function t(t){this.name=t,this.inputs=[],this.inputsRename=[],this.outputs=[],this.outputsRename=[],this.propertyOutputs=[],this.checkProperties=[],this.propertyMap={},this.directive=null;var n=t.replace(B,(function(t,e){return"-"+e.toLowerCase()})),r=this,o={selector:n,inputs:this.inputsRename,outputs:this.outputsRename},s=function(e){function n(n,o,i){return e.call(this,new I(o,t,i,r.directive||void 0),n,r.template,r.inputs,r.outputs,r.propertyOutputs,r.checkProperties,r.propertyMap)||this}return i(n,e),n}(x);s.decorators=[{type:e.Directive,args:[Object.assign({jit:!0},o)]}],s.ctorParameters=function(){return[{type:void 0,decorators:[{type:e.Inject,args:["$scope"]}]},{type:e.Injector},{type:e.ElementRef}]},this.type=s}return t.prototype.extractBindings=function(){var t=this,e="object"==typeof this.directive.bindToController;if(e&&Object.keys(this.directive.scope).length)throw new Error("Binding definitions on scope and controller at the same time are not supported.");var n=e?this.directive.bindToController:this.directive.scope;"object"==typeof n&&Object.keys(n).forEach((function(e){var r=n[e],o=r.charAt(0),i=r.charAt(1),s=r.substring("?"===i?2:1)||e,a="input_"+s,c=a+": "+s,u="output_"+s,p=u+": "+s,l=p+"Change";switch(o){case"@":case"<":t.inputs.push(a),t.inputsRename.push(c),t.propertyMap[a]=e;break;case"=":t.inputs.push(a),t.inputsRename.push(c),t.propertyMap[a]=e,t.outputs.push(u),t.outputsRename.push(l),t.propertyMap[u]=e,t.checkProperties.push(e),t.propertyOutputs.push(u);break;case"&":t.outputs.push(u),t.outputsRename.push(p),t.propertyMap[u]=e;break;default:var h=JSON.stringify(n);throw new Error("Unexpected mapping '"+o+"' in '"+h+"' in '"+t.name+"' directive.")}}))},t.resolve=function(t,e){var n=Object.keys(t).map((function(n){var r=t[n];return r.directive=I.getDirective(e,n),r.extractBindings(),Promise.resolve(I.getTemplate(e,r.directive,!0)).then((function(t){return r.template=t}))}));return Promise.all(n)},t}(),x=function(){function t(t,n,r,o,i,s,a,c){this.helper=t,this.template=r,this.inputs=o,this.outputs=i,this.propOuts=s,this.checkProperties=a,this.propertyMap=c,this.controllerInstance=null,this.destinationObj=null,this.checkLastValues=[],this.$element=null,this.directive=t.directive,this.element=t.element,this.$element=t.$element,this.componentScope=n.$new(!!this.directive.scope);var u=this.directive.controller;this.directive.bindToController&&u?(this.controllerInstance=this.helper.buildController(u,this.componentScope),this.destinationObj=this.controllerInstance):this.destinationObj=this.componentScope;for(var p=0;p<o.length;p++)this[o[p]]=null;for(var l=0;l<i.length;l++){var h=this[i[l]]=new e.EventEmitter;-1===this.propOuts.indexOf(i[l])&&this.setComponentProperty(i[l],function(t){return function(e){return t.emit(e)}}(h))}for(var d=0;d<s.length;d++)this.checkLastValues.push(U)}return t.prototype.ngOnInit=function(){var t=this.helper.prepareTransclusion(),e=this.helper.compileTemplate(this.template),n=this.directive.controller;n&&!this.directive.bindToController&&(this.controllerInstance=this.helper.buildController(n,this.componentScope));var r=this.helper.resolveAndBindRequiredControllers(this.controllerInstance);this.controllerInstance&&$(this.controllerInstance.$onInit)&&this.controllerInstance.$onInit();var o=this.directive.link,i="object"==typeof o&&o.pre,s="object"==typeof o?o.post:o;i&&i(this.componentScope,this.$element,"NOT_SUPPORTED",r,"NOT_SUPPORTED"),e(this.componentScope,null,{parentBoundTranscludeFn:t}),s&&s(this.componentScope,this.$element,"NOT_SUPPORTED",r,"NOT_SUPPORTED"),this.controllerInstance&&$(this.controllerInstance.$postLink)&&this.controllerInstance.$postLink()},t.prototype.ngOnChanges=function(t){var e=this,n={};Object.keys(t).forEach((function(r){var o=t[r];e.setComponentProperty(r,o.currentValue),n[e.propertyMap[r]]=o})),$(this.destinationObj.$onChanges)&&this.destinationObj.$onChanges(n)},t.prototype.ngDoCheck=function(){var t=this,e=this.destinationObj,n=this.checkLastValues,r=this.propOuts;this.checkProperties.forEach((function(o,i){var s=e[o];O(n[i],s)||t[r[i]].emit(n[i]=s)})),this.controllerInstance&&$(this.controllerInstance.$doCheck)&&this.controllerInstance.$doCheck()},t.prototype.ngOnDestroy=function(){this.helper.onDestroy(this.componentScope,this.controllerInstance)},t.prototype.setComponentProperty=function(t,e){this.destinationObj[this.propertyMap[t]]=e},t}();x.decorators=[{type:e.Directive}],x.ctorParameters=function(){return[{type:I},{type:void 0},{type:String},{type:Array},{type:Array},{type:Array},{type:Array},{type:void 0}]};var Z=0,q=function(){function t(t,e){if(this.ng2AppModule=t,this.compilerOptions=e,this.idPrefix="NG2_UPGRADE_"+Z+++"_",this.downgradedComponents=[],this.ng1ComponentsToBeUpgraded={},this.upgradedProviders=[],this.moduleRef=null,!t)throw new Error("UpgradeAdapter cannot be instantiated without an NgModule of the Angular app.")}return t.prototype.downgradeNg2Component=function(t){return this.downgradedComponents.push(t),function n(t){var n=function(n,r,o){var i,a=3===b(r),c=a?function(t){return function(){return e.NgZone.isInAngularZone()?t():i.run(t)}}:function(t){return t},u=a&&w(r)>1;return{restrict:"E",terminal:!0,require:["?^^$$angularInjector","?ngModel"],link:function(p,l,h,d){var f=d[1],g=d[0],m=void 0,y=!1;if(!g||u){var w=t.downgradedModule||"",b="$$angularLazyModuleRef"+w,$="instantiating component '"+v(t.component)+"'";j(r,w,b,$);var C=r.get(b);m=C.injector||C.promise}var O=function(i,s){var u=s.get(e.ComponentFactoryResolver).resolveComponentFactory(t.component);if(!u)throw new Error("Expecting ComponentFactory for: "+v(t.component));var d=new D(l),g=new k(l,h,p,f,i,r,n,o,u,c),m=g.compileContents();g.createComponent(m),g.setupInputs(a,t.propagateDigest),g.setupOutputs(),g.registerCleanup(),d.resolve(g.getInjector()),y&&p.$evalAsync((function(){}))},A=a?function(t,n){i||(i=t.get(e.NgZone)),c((function(){return O(t,n)}))()}:O;P.all([g||m,m||g]).then((function(t){var e=s(t,2);return A(e[0],e[1])})),y=!0}}};return n.$inject=["$compile","$injector","$parse"],n}({component:t})},t.prototype.upgradeNg1Component=function(t){return this.ng1ComponentsToBeUpgraded.hasOwnProperty(t)?this.ng1ComponentsToBeUpgraded[t].type:(this.ng1ComponentsToBeUpgraded[t]=new F(t)).type},t.prototype.registerForNg1Tests=function(t){var e=this,n=window.angular.mock;if(!n||!n.module)throw new Error("Failed to find 'angular.mock.module'.");this.declareNg1Module(t),n.module(this.ng1Module.name);var r=new L;return this.ng2BootstrapDeferred.promise.then((function(t){r._bootstrapDone(e.moduleRef,t)}),m),r},t.prototype.bootstrap=function(t,n,r){var o=this;this.declareNg1Module(n);var i=new L,a=window.angular;a.resumeBootstrap=void 0,this.ngZone.run((function(){!function(t,e,n){p.bootstrap(t,e,n)}(t,[o.ng1Module.name],r)}));var c=new Promise((function(t){if(a.resumeBootstrap){var e=a.resumeBootstrap;a.resumeBootstrap=function(){a.resumeBootstrap=e;var n=a.resumeBootstrap.apply(this,arguments);return t(),n}}else t()}));return Promise.all([this.ng2BootstrapDeferred.promise,c]).then((function(n){var r=s(n,1)[0];l(t).data(y(h),o.moduleRef.injector),o.moduleRef.injector.get(e.NgZone).run((function(){i._bootstrapDone(o.moduleRef,r)}))}),m),i},t.prototype.upgradeNg1Provider=function(t,e){this.upgradedProviders.push({provide:e&&e.asToken||t,useFactory:function(e){return e.get(t)},deps:["$injector"]})},t.prototype.downgradeNg2Provider=function(t){
|
57 | return function e(t,n){void 0===n&&(n="");var r=function(e){var r=""+h+n,o=$(t)?v(t):String(t);return j(e,n,r,"instantiating injectable '"+o+"'"),e.get(r).get(t)};return r.$inject=["$injector"],r}(t)},t.prototype.declareNg1Module=function(t){var r=this;void 0===t&&(t=[]);var o,i,s=[],a=this,c=this.ng1Module=p.module(this.idPrefix,t),u=n.platformBrowserDynamic();return this.ngZone=new e.NgZone({enableLongStackTrace:Zone.hasOwnProperty("longStackTraceZoneSpec")}),this.ng2BootstrapDeferred=new C,c.constant("$$angularUpgradeAppType",1).factory(h,(function(){return r.moduleRef.injector.get(e.Injector)})).factory("$$angularLazyModuleRef",[h,function(t){return{injector:t}}]).constant("$$angularNgZone",this.ngZone).factory("$$angularCompiler",(function(){return r.moduleRef.injector.get(e.Compiler)})).config(["$provide","$injector",function(t,n){t.decorator("$rootScope",["$delegate",function(t){if(!(i=t.constructor.prototype).hasOwnProperty("$apply"))throw new Error("Failed to find '$apply' on '$rootScope'!");return o=i.$apply,i.$apply=function(t){return s.push(t)},t}]),n.has("$$testability")&&t.decorator("$$testability",["$delegate",function(t){var n=t.whenStable,r=function(t){n.call(this,(function(){var n=a.moduleRef.injector.get(e.Testability);n.isStable()?t.apply(this,arguments):n.whenStable(r.bind(this,t))}))};return t.whenStable=r,t}])}]),c.run(["$injector","$rootScope",function(t,n){F.resolve(r.ng1ComponentsToBeUpgraded,t).then((function(){var a={providers:[{provide:"$injector",useFactory:function(){return t}},{provide:"$compile",useFactory:function(){return t.get("$compile")}},r.upgradedProviders],imports:[e.resolveForwardRef(r.ng2AppModule)],entryComponents:r.downgradedComponents},c=function(){function t(){}return t.prototype.ngDoBootstrap=function(){},t}();c.decorators=[{type:e.NgModule,args:[Object.assign({jit:!0},a)]}],c.ctorParameters=function(){return[]},u.bootstrapModule(c,[r.compilerOptions,{ngZone:r.ngZone}]).then((function(t){r.moduleRef=t,r.ngZone.run((function(){if(i){for(i.$apply=o;s.length;)n.$apply(s.shift());i=null}}))})).then((function(){return r.ng2BootstrapDeferred.resolve(t)}),m).then((function(){var t=r.ngZone.onMicrotaskEmpty.subscribe({next:function(){return n.$$phase?(e.isDevMode()&&console.warn("A digest was triggered while one was already in progress. This may mean that something is triggering digests outside the Angular zone."),n.$evalAsync((function(){}))):n.$digest()}});n.$on("$destroy",(function(){t.unsubscribe()}))}))})).catch((function(t){return r.ng2BootstrapDeferred.reject(t)}))}]),c},t}(),L=(function(){function t(t){this.element=t,this.callbacks=[],t.data(y(h),this)}t.prototype.then=function(t){this.injector?t(this.injector):this.callbacks.push(t)},t.prototype.resolve=function(t){this.injector=t,this.element.data(y(h),t),this.element=null,this.callbacks.forEach((function(e){return e(t)})),this.callbacks.length=0}}(),function(){function t(){this._readyFn=null,this.ng1RootScope=null,this.ng1Injector=null,this.ng2ModuleRef=null,this.ng2Injector=null}return t.prototype._bootstrapDone=function(t,e){this.ng2ModuleRef=t,this.ng2Injector=t.injector,this.ng1Injector=e,this.ng1RootScope=e.get("$rootScope"),this._readyFn&&this._readyFn(this)},t.prototype.ready=function(t){this._readyFn=t},t.prototype.dispose=function(){this.ng1Injector.get("$rootScope").$destroy(),this.ng2ModuleRef.destroy()},t}());
|