Answer the question
In order to leave comments, you need to log in
How to get component attribute?
I have a component:
@Component({
selector: 'app-icon',
templateUrl: './icon.component.html',
styleUrls: ['./icon.component.less']
})
<icon name="Нужное значение"></icon>
Answer the question
In order to leave comments, you need to log in
this is not possible in the constructor, at this stage the view of the component has not yet been created.
And so this is a normal Input
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question