You can use the following cli command to transit your app to standalone.
1
ng generate @angular/core:standalone
and you’ll see the following options in terminal, use the arrow key to select the options.
1 2 3 4
? Choose the type of migration: (Use arrow keys) > Convert all components, directives and pipes to standalone Remove unnecessary NgModule classes Bootstrap the application using standalone APIs