Angular

367 readers
1 users here now

A community for discussion about angular

Wormhole

[email protected]

Logo base by Angular under CC BY 4.0 with modifications to add a gradient and drop shadow

founded 2 years ago
MODERATORS
1
3
Announcing Angular v20 (blog.angular.dev)
submitted 2 days ago by [email protected] to c/angular
2
 
 

Im kind of new to Angular and I think I'm finally starting to understand the difference between canMatch and canActivate guards in terms of behavior, but I still struggle to understand which to use in which scenario.

Let's say I have an application with some component/page that requires a user to be logged in, and also have certain permissions. It seems to me that it doesn't really matter which one to use, right?

And yes, I understand that this is all client side and the actual backend endpoints need to do the same checks, I'm just wondering why you would use one over the other.

Any insights would be welcome.

Note: I'm using Angular 19.

3
8
Meet Angular v19 (blog.angular.dev)
submitted 6 months ago by [email protected] to c/angular
4
 
 

Excited 🤩 release of #MaterialM, Available on #Angular18 #dashboard #template

Features MaterialM Angular
- Modern 🤩 Material Design
- Extensive ⚡ Features
- Pre-built 🍂 Components

For More Features 👉 Check it out here - https://www.wrappixel.com/templates/materialm-material-angular-dashboard-template/

@Gallant_Gakii

@[email protected]

@angular @[email protected]

5
4
submitted 10 months ago by mac to c/angular
6
9
Angular 18 is out (blog.angular.dev)
submitted 1 year ago by magbeat to c/angular
7
5
submitted 1 year ago* (last edited 1 year ago) by magbeat to c/angular
8
 
 

Adding fallback content for ng-content got a lot easier with Angular v18

9
4
submitted 1 year ago by magbeat to c/angular
 
 

Was waiting for a long time for jest to replace karma. It seems there is a new test runner overtaking jest for Angular testing: Web Test Runner.

10
11
6
submitted 1 year ago by mac to c/angular
12
17
submitted 1 year ago by mac to c/angular
13
14
15
12
submitted 1 year ago by mac to c/angular
16
4
submitted 1 year ago by mac to c/angular
17
 
 

i need to import HtmlClient and router, thank you.

18
 
 

Great usecase for the transforming @Input properties.

We will have to refactor a huge (and I mean huge) component for a customer in the near future. The consuming teams should not notice any of this. transform could be very useful for this.

19
20
6
submitted 2 years ago by magbeat to c/angular
21
 
 

Never heard and never used this feature of Angular v16.

22
 
 

Has anyone already switched to Jest? Has anyone already gained experience with Playwright Component Tests in Angular?

23
24
3
submitted 2 years ago* (last edited 2 years ago) by magbeat to c/angular
 
 

Nice article on how to use the Angular Schematics to convert a project to all standalone components and about what the schematics actually do in every step.

25
 
 

Angular will not mark all parents of a component as dirty if the component uses signals in the template.

view more: next ›