GitHub – episerver/DeveloperTools: EXPERIMENTAL project to build small tools useful for developers of EPiServer CMS
CSS Specificity – DEV Community
Basic Color Theory for Web Developers – DEV Community
A curated list of delightful Visual Studio Code packages and resources
A curated list of delightful Visual Studio Code packages and resources.
github.com/viatsko/awesome-vscode/blob/master/README.md#official
Setup VS Code debugger for Angular CLI
This recipe shows how to use the Debugger for Chrome extension with VS Code to debug an application generated by the Angular CLI.
github.com/Microsoft/vscode-recipes/blob/master/Angular-CLI/README.md
Understanding Angular modules (NgModule) and their scopes
Feature modules are NgModules for the purpose of organizing code.
As your app grows, you can organize code relevant for a specific feature. This helps apply clear boundaries for features. With feature modules, you can keep code related to a specific functionality or feature separate from other code. Delineating areas of your app helps with collaboration between developers and teams, separating directives, and managing the size of the root module.
https://angular.io/guide/feature-modules
The purpose of a NgModule is to declare each thing you create in Angular,
and group them together (like Java packages or PHP / C# namespaces).
There is two kind of main structures:
- “declarations” is for things you’ll use in your templates: mainly components (~ views: the classes displaying data), but also directives and pipes,
- “providers” is for services (~ models: the classes getting and handling data).
Source: Understanding Angular modules (NgModule) and their scopes
From angular official docs:
Modules are a great way to organize an application and extend it with capabilities from external libraries.
Angular libraries are NgModules, such as FormsModule
, HttpClientModule
, and RouterModule
. Many third-party libraries are available as NgModules such as Material Design, Ionic, and AngularFire2.
NgModules consolidate components, directives, and pipes into cohesive blocks of functionality, each focused on a feature area, application business domain, workflow, or common collection of utilities.
Modules can also add services to the application. Such services might be internally developed, like something you’d develop yourself or come from outside sources, such as the Angular router and HTTP client.
Modules can be loaded eagerly when the application starts or lazy loaded asynchronously by the router.
NgModule metadata does the following:
- Declares which components, directives, and pipes belong to the module.
- Makes some of those components, directives, and pipes public so that other module’s component templates can use them.
- Imports other modules with the components, directives, and pipes that components in the current module need.
- Provides services that the other application components can use.
Every Angular app has at least one module, the root module. You bootstrap that module to launch the application.
The root module is all you need in a simple application with a few components. As the app grows, you refactor the root module into feature modules that represent collections of related functionality. You then import these modules into the root module.
Read more here: https://angular.io/guide/ngmodules
Debug JavaScript in Internet Explorer 11 in 7 easy steps
Settings Sync – Visual Studio Code Extension
An extension for Visual Studio Code to sync settings between computers.
It Syncs
All extensions and complete User Folder that Contains 1. Settings File 2. Keybinding File 3. Launch File 4. Snippets Folder 5. VSCode Extensions & Extensions Configurations 6. Workspaces Folder
Angular 5+ not working in Internet Explorer – solution
You installed the Angular CLI and used it to generate your new application. But, when you try to view it in Internet Explorer (IE), you see nothing. Now what?
The bad news:
Angular CLI applications require a few more steps in order to support Internet Explorer.The good news:
It’s really simple: un-comment a few imports and install a couple of npm packages.