I have created a unique custom component:
@Component({
selector: 'my-custom-component',
templateUrl: './my-custom-component.html',
styleUrls: ['./my-custom-component.css']
})
export class MyCustomComponent {
constructor() {
console.log('myCustomComponent');
}
}
To use this custom component, you can do the following:
<my-custom-component></my-custom-component>
However, the question arises on how to pass a variable. For instance:
<my-custom-component custom-title="My Title"></my-custom-component>
How can this custom title be utilized in the component code?