@Component({
selector: 'app-icon',
templateUrl: './icon.component.html',
styleUrls: ['./icon.component.less']
})
<icon name="Нужное значение"></icon>
@Component({
selector: 'app-icon',
templateUrl: './icon.component.html',
styleUrls: ['./icon.component.less']
})
export class IconComponent {
constructor(@Attribute('name') public vasya: string) {
console.log(vasya);
}
}