Created
September 12, 2016 02:13
-
-
Save vsavkin/8c2d2299c461a17dd3480999866fd548 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@Component({ | |
selector: 'sub-app', | |
providers: [{provide: PaymentService, useClass: CustomPaymentService1}], | |
templateUrl: `subapp1.html`}) | |
class SubApp1 {} | |
@Component({ | |
selector: 'sub-app', | |
providers: [{provide: PaymentService, useClass: CustomPaymentService2}], | |
templateUrl: `subapp2.html`}) | |
class SubApp2 {} | |
@Component({ | |
selector: 'app' | |
template: `<sub-app-1></sub-app-1><sub-app-2></sub-app-2>`}) | |
class App {} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Shouldn't selector: 'sub-app' in 2nd line be 'sub-app-1' and in 8th 'sub-app-2' ?