You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
// A self-contained demonstration of the problem follows...import{ngModule}from'./../module.ts';exportclassMyService{}ngModule.service('myService',MyService);// <- REALLY IMPORTANT SIDE-EFFECT
TypeScript Version:
1.8.10
Code
MyService.ts
MyComponent.ts
Expected behavior:
(I know this sort-of-tree-shaking is "by design", but by the principle of least astonishment, expected behavior is this)
MyComponent.js
Actual behavior:
MyComponent.js
And then AngularJS is all "myServiceProvider not found" and crashy.