Allow @implements of 'abstract class'
See original GitHub issueThis allows a DI pattern
abstract class IFace { ... }
di.register(IFace, ...); /// <- IFace must be a class for it to have a value
class Foo implements IFace {}
Currently tsickle drops the ‘implements IFace’ because you cannot implements a class, but in the specific case of an empty abstract class we could allow it.
Issue Analytics
- State:
- Created 5 years ago
- Comments:9 (5 by maintainers)
Top Results From Across the Web
Implement Interface using Abstract Class in Java
Interface contains only abstract methods that can't be instantiated and it is declared by keyword interface. A class that is declared with ...
Read more >Abstract Methods and Classes (The Java™ Tutorials ...
Abstract classes are similar to interfaces. You cannot instantiate them, and they may contain a mix of methods declared with or without an...
Read more >Extending vs. implementing a pure abstract class in TypeScript
The implements keyword treats the A class as an interface, that means C has to implement all the methods defined in A, no...
Read more >Abstract Class vs Interface in Java – Difference Between Them
An abstract class permits you to make functionality that subclasses can implement or override whereas an interface only permits you to state ...
Read more >Implement methods of an interface or abstract class - JetBrains
If a class is declared as implementing a certain interface or extending a class with abstract methods, it has to implement the methods...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Oops, and now I overlooked your Angular 2 question. You are right that AngularJS did some crazy regex stuff. Angular2 is effectively totally different, a complete rewrite.
Nah I’m talking about this Angular: https://angular.io/api/core/InjectionToken , which is passing around keys.