Skip to content

Angular 16 migration breaks templateRef #1786

Discussion options

You must be logged in to vote

This was breaking due to setting "preserveWhitespaces" in main.ts file.

changing

platformBrowserDynamic()
.bootstrapModule(AppMainModule, { preserveWhitespaces: true })
.then(success => console.log(Application started))
.catch(err => console.error(err));

to

platformBrowserDynamic()
.bootstrapModule(AppMainModule)
.then(success => console.log(Application started))
.catch(err => console.error(err));

solved the issue

Replies: 2 comments 1 reply

Comment options

You must be logged in to vote
1 reply
@tejaskatariya
Comment options

Comment options

You must be logged in to vote
0 replies
Answer selected by shanmukhateja
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants