Тёмный

Standalone APIs in Angular v16 

Angular
Подписаться 148 тыс.
Просмотров 19 тыс.
50% 1

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!
Learn more about Angular v16 → goo.gle/angular-v16
Migrate an existing Angular project to standalone → goo.gle/3HnTMFR
Getting started with standalone components → goo.gle/angular-standalone-ro...
Watch more videos about Angular v16 → goo.gle/Angularv16
Subscribe to Angular → goo.gle/Angular
#Angular

Развлечения

Опубликовано:

 

6 май 2023

Поделиться:

Ссылка:

Скачать:

Готовим ссылку...

Добавить в:

Мой плейлист
Посмотреть позже
Комментарии : 17   
@Angular
@Angular Год назад
Learn more about Angular v16 → goo.gle/angular-v16 Migrate an existing Angular project to standalone → goo.gle/3HnTMFR Getting started with standalone components → goo.gle/angular-standalone-routing
@BojanKogoj
@BojanKogoj Год назад
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
@CompCohen
@CompCohen Год назад
The docs show that loadComponent() is still implemented like so export const ROUTES: Route[] = [ {path: 'admin', loadComponent: () => import('./admin/panel.component').then(mod => mod.AdminPanelComponent)}, // ... ];
@LeandroTassinari
@LeandroTassinari Год назад
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.
@toxaq
@toxaq Год назад
Component import directly imports a standalone component.
@ahmedrashad494
@ahmedrashad494 Год назад
Is this method correct, because I applied the same as you did, but it shows me an error, but with this method it works fine .. import { Component } from '@angular/core'; import { CommonModule } from '@angular/common'; @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: () => import('./Components/products/products.component').then( (m) => m.ProductsComponent ), },
@CompCohen
@CompCohen Год назад
Looks they got it wrong in the video. The docs show that loadComponent() is still implemented like so export const ROUTES: Route[] = [ {path: 'admin', loadComponent: () => import('./admin/panel.component').then(mod => mod.AdminPanelComponent)}, // ... ];
@ahmedrashad494
@ahmedrashad494 Год назад
@@CompCohen Thank you
@BillMoates-wh7mp
@BillMoates-wh7mp 9 месяцев назад
I don't understand
@BillMoates-wh7mp
@BillMoates-wh7mp 9 месяцев назад
This may not be a good idea.
@envo2199
@envo2199 Год назад
improving dev experience == improving noob experience. never understood what is hard about learning modules
@YordanTGeorgiev
@YordanTGeorgiev Год назад
True but I see one very good outcome of standalone components is that now we can see each component dependencies very easy
@totallynotchosen183
@totallynotchosen183 Год назад
what is bad about improving noob experience? you said it like its a bad thing
@envo2199
@envo2199 Год назад
@@totallynotchosen183 because i have to learn how to read and understand and debug this aproach also
@totallynotchosen183
@totallynotchosen183 Год назад
@@envo2199 thats the quirk of webdev world. Always new stuff to learn. Personally I like it more than the alternative.
@toxaq
@toxaq Год назад
Modules weren’t hard. Sharing components between modules was. Hence why every project unnecessarily had a “SharedModule” that every reused component was thrown in. It was very poor design and good riddance to it.
Далее
Angular v16 release recap
6:32
Просмотров 46 тыс.
Армия США вошла в Зангезур
04:17
Просмотров 234 тыс.
ЮТУБ БЛОКИРУЮТ?
01:52
Просмотров 862 тыс.
What is going on? 😂 (via haechii_br/IG) #shorts
00:15
Angular Standalone Components - No Ngmodules Anymore
7:54
API vs. SDK: What's the difference?
9:21
Просмотров 1,4 млн
Turns out REST APIs weren't the answer (and that's OK!)
10:38
What's new in Angular v17
5:08
Просмотров 41 тыс.
Rethinking reactivity with Angular Signals
10:57
Просмотров 19 тыс.
Why Angular Signals? Write Your First Signal
14:25
Просмотров 8 тыс.
Typed Forms in Angular
10:59
Просмотров 55 тыс.
Опасный момент
0:23
Просмотров 3,7 млн