Standalone APIs in Angular v16

  Рет қаралды 19,715

Angular

Angular

Күн бұрын

Пікірлер
@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 Жыл бұрын
I don't understand
@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.
@BillMoates-wh7mp
@BillMoates-wh7mp Жыл бұрын
This may not be a good idea.
Why didn't the Angular team just use RxJS instead of Signals?
8:15
Joshua Morony
Рет қаралды 107 М.
Typed Forms in Angular
10:59
Angular
Рет қаралды 59 М.
“Don’t stop the chances.”
00:44
ISSEI / いっせい
Рет қаралды 62 МЛН
VIP ACCESS
00:47
Natan por Aí
Рет қаралды 30 МЛН
人是不能做到吗?#火影忍者 #家人  #佐助
00:20
火影忍者一家
Рет қаралды 20 МЛН
How To Make Angular Code More Reusable
19:14
Decoded Frontend
Рет қаралды 32 М.
Simplify with Angular Standalone Components
9:32
Deborah Kurata
Рет қаралды 18 М.
API vs SDK: What’s the Difference?
3:42
Klippa
Рет қаралды 18 М.
10 Signs Your Software Project Is Heading For FAILURE
17:59
Continuous Delivery
Рет қаралды 43 М.
Deferrable Views - New Feature in Angular 17
15:31
Decoded Frontend
Рет қаралды 25 М.
Use NgRx with Standalone Components in Angular 15
10:35
Fun Of Heuristic
Рет қаралды 6 М.
Getting started with Angular Signals
11:03
Angular
Рет қаралды 45 М.
Why I decided to switch to the inject() function in Angular
6:10
Joshua Morony
Рет қаралды 63 М.
Angular v19 release recap
5:11
Angular
Рет қаралды 10 М.
What’s new in Angular
16:02
Angular
Рет қаралды 34 М.
“Don’t stop the chances.”
00:44
ISSEI / いっせい
Рет қаралды 62 МЛН