I'm using Angular 19 and my version of node is 18.2. I've got an existing module project and have added a stand alone component. The issue I'm having is that the component does render and the constructor, ngOnInit, and ngAfterViewInit do not fire. The stand alone component also does not appear in the browser dev tools. Any idea what could be causing angular to not render this component?
Component: import { Component, OnInit} from '@angular/core';
@Component({
selector: 'app-lu-map2',
standalone: true,
imports: [],
templateUrl: './lu-map2.component.html',
styleUrl: './lu-map2.component.css',
})
export class LuMap2Component implements OnInit{
constructor(){
console.log("Constructor Fired");
}
ngOnInit() {
console.log("message from lu-map2: OnInit Fired")
}
ngAfterViewInit() {
console.log("message from lu-map2: ngAfterViewInit Fired")
}
}
Component template:
<p>lu-map2 works!</p>
app.component template
<app-lu-map2></app-lu-map2>
if I swap out the standalone component with a non-standalone component it renders fine. Also see the attached screen shot that shows the component in the project, but the component is not is not listed in edge dev tools sources. (Doesnt appear in chrome or firefox either)