Skip to main content

Posts

Showing posts with the label Angular 2

Angular 9 Coding Style Guideline - 8, 7, 6, 5, 4, 2

The Angular coding guideline will helps us to understand to write the great code. It must be follows each and every Angular developers. Explore -   What Are Differences in Angular 9, 8, 7, 6, 5, 4, 2? Single Responsibility - Apply the single responsibility principle (SRP) to all components, services, and other symbols. This helps make the app cleaner, easier to read and maintain, and more testable. Rule of One - Do define one thing, such as a service or component, per file and consider limiting files to 400 lines of code. Small functions - Do define small functions and consider limiting to no more than 75 lines. General Naming Guidelines - Do use consistent names for all symbols and the recommended pattern is - feature.type.ts. Separate file names with dots and dashes - 1.       Do use dashes to separate words in the descriptive name. 2.       Do use dots to separate the descriptive name from the ...

Angular 9 vs. Angular 8 vs. Angular 7 vs. Angular 6, 5, 4, 2

Angular Versioning Angular version numbers indicate the level of changes that are introduced by the release. This article will help you understand the differences between these versions. What’s New In Angular 9: 1.       Angular 9 Released October/November 2019 2.       Added undecorated classes migration schematic in the core. 3.       The formControlName also accepts a number in the form 4.       Now allow selector-less directives as base classes in View Engine in the compiler. 5.       Added support selector-less directive as base classes in Ivy and also make the Ivy compiler the default for ngc. 6.       Convert all ngtsc diagnostics to ts.Diagnostics 7.       Added bazel - support ts_library targets as entry-points for ng_package. 8.       Added core - add dynam...