When we call a component in Angular 2 like so <my-component></my-component>
. Is it possible to pass in attrs here so that they can be used within the component class?
example:
<my-component data-is-live="true"></my-component>
// class
export class MyComponent {
constructor() {
console.log($attrs);
}
}