Skip to content

Instantly share code, notes, and snippets.

@alexzuza
Created January 29, 2019 07:46
Show Gist options
  • Save alexzuza/cd9b0e06030441a6774c59e9328177ee to your computer and use it in GitHub Desktop.
Save alexzuza/cd9b0e06030441a6774c59e9328177ee to your computer and use it in GitHub Desktop.
di simple app
@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