Created
January 29, 2019 07:46
-
-
Save alexzuza/cd9b0e06030441a6774c59e9328177ee to your computer and use it in GitHub Desktop.
di simple app
This file contains hidden or 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: 'my-app', | |
template: ` | |
<div dirA> | |
<div dirB>Hello Ivy</div> | |
</div> | |
` | |
}) | |
export class AppComponent {} | |
@Directive({ selector: '[dirA]' }) | |
export class DirA {} | |
@Directive({ selector: '[dirB]' }) | |
export class DirB { | |
constructor(private rootComp: AppComponent) {} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment