Version | Link |
---|---|
ECMAScript 2015 - ES2015 - ES6 | All Features List |
ECMAScript 2016 - ES2016 - ES7 | All Features List |
ECMAScript 2017 - ES2017 - "ES8" | All Features List |
ECMAScript 2018 - ES2018 - "ES9" | All Features List |
ECMAScript 2019 - ES2019 - "ES10" | All Features List |
ECMAScript 2020 - ES2020 - "ES11" | All Features List |
//--------------- ElementRef---------------------- | |
@ViewChild('foo', {static: false}) foo: ElementRef; | |
@Component({ | |
selector: 'sample', | |
template: ` |
import { Directive, HostListener, OnInit, Optional } from '@angular/core'; | |
import { NgControl } from '@angular/forms'; | |
@Directive({ | |
// tslint:disable-next-line:directive-selector | |
selector: 'input[trimInput],textarea[trimInput]', | |
}) | |
export class TrimInputDirective implements OnInit { | |
constructor(@Optional() private ngControl: NgControl) { |
12 | |
# Check out to a temporary branch: | |
git checkout --orphan TEMP_BRANCH | |
# Add all the files: | |
git add -A | |
# Commit the changes: | |
git commit -am "Initial commit" |
testFun(): void { | |
this.testPromise(identity).then(data => { | |
}).catch(function (e) { | |
console.log(e); | |
}); | |
Sass (which stands for Syntactically Awesome Style Sheets) is an extension to CSS.
sass is superset of css Sass is syntatic sugar of css It helps in writing CSS quickly.
- The SCSS - is an extension of CSS syntax. files use the extension .scss.
Nx is a suite of powerful, extensible dev tools to help you architect, test, and build at any scale — integrating seamlessly with modern technologies and libraries while providing a robust CLI, caching, dependency management, and more.
It has first-class support for many frontend and backend technologies, so its documentation comes in multiple flavours.
https://medium.com/codestory/seo-in-angular-without-server-side-rendering-fa7d984dd44b | |
https://meganrook.medium.com/angular-error-handling-made-easy-9bca1b4c52b0 |
React is a JavaScript library
React is not a framework (unlike Angular, which is more opinionated)
React is an open-source project created by Facebook
creating a new single-page app, use Create React App. server-rendered website with Node.js, try Next.js.