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
Copy file name to clipboardExpand all lines: README.md
+6Lines changed: 6 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -18,6 +18,12 @@ export class MyComponent {}
18
18
exportclassMySubComponent {} // This should go first
19
19
```
20
20
21
+
### Exception `... Make sure they all have valid type or annotations ...`
22
+
23
+
Try changing your injections from `constructor(private myService: MyService)` to `@Inject(forwardRef(() => MyService)) private myService: MyService`.
24
+
25
+
See also: (http://blog.thoughtram.io/angular/2015/09/03/forward-references-in-angular-2.html)
26
+
21
27
## Adding content inside a component/directive (transclusion)
22
28
23
29
The `ng-content` directive allows you to insert content inside a (custom) component very easily. This is similar to but much more powerful than Angular 1 translusion.
0 commit comments