I've got a problem where I've created a Angular Web Component (or Angular Web Element) and I'm trying to get a value passed into the component via a @Input(). This value is just not pulling through but I've made it all the same as any other @Input() in Angular. I'm very confused.
The code looks like this:
component.ts
@Input() displayGroup: string;
ngOnInit() {
console.log(this.displayGroup);
}
using element
<my-custom-element displayGroup="test"></my-custom-element>
Why would the value from the Input? The value displayed in the console is:
undefined