Category : angular2-styleguide

I’ve been browsing the Angular Style Guide https://angular.io/guide/styleguide trying to find whether there is a convention for writing enums and constants. I couldn’t find none in the official style guide. Having learned from the official angular documentation and the famous tour of heroes, I was writing all my constants and enums in UPPER_SNAKE_CASE, but I ..

Read more

Recently i saw a new angular project (v10) with a curious stucture. Owners said they decided to put all css component files into an asset folder like the example below: + src + app – app.component.ts – app.component.html – app.component.scss – app.module.ts – app.routing.ts + components + foo – foo.component.ts – foo.component.html + bar – ..

Read more