Standalone APIs in Angular v16

preview_player
Показать описание
Find out about the latest improvements in the routing APIs and all the tooling that landed in v16. Find out how you can create apps with ng new, migrate apps with new standalone migrations, and more!

#Angular
Рекомендации по теме
Комментарии
Автор

I stay up to date with everything Angular related, but this video is the first time i saw there is a migration as well! Nice

BojanKogoj
Автор

What is the difference between component import and component module import? Can the two coexist?
When migrating to v16 and also migrating to the standalone component, it got confusing.

LeandroTassinari
Автор

The docs show that loadComponent() is still implemented like so

export const ROUTES: Route[] = [
{path: 'admin', loadComponent: () => => mod.AdminPanelComponent)},
// ...
];

CompCohen
Автор


@Component({
selector: 'app-products',
standalone: true,
imports: [CommonModule],
templateUrl: './products.component.html',
styleUrls: ['./products.component.css']
})
export class ProductsComponent {

this is teh route >>> {
path: 'products',
loadComponent: () =>

(m) => m.ProductsComponent
),
},

ahmedrashad
Автор

improving dev experience == improving noob experience.
never understood what is hard about learning modules

envo