Full Stack Developer. Love to learn new skills. Always up for challenging stuff.
Interests: Food, Machine learning, and cats :p
Passionate about contributing to social welfare and women empowerment
Source: https://stackoverflow.blog/2017/11/13/cliffs-insanity-dramatic-shifts-technologies-stack-overflow/
Source: https://insights.stackoverflow.com/survey/2017#technology-frameworks-libraries-and-other-technologies
ng serve --aot
tsconfig.json
<input name="firstName" ngModel>
<input name="firstName" ngModel [ngModelOptions]="{updateOn: 'blur'}">
<form [ngFormOptions]="{updateOn: 'submit'}">
new FormGroup(value);
new FormControl(value, [], [myValidator])
new FormGroup(value, {updateOn: 'blur'}));
new FormControl(value, {updateOn: 'blur', asyncValidators: [myValidator]})
constructor(public router: Router, spinner: Spinner) {
router.events.subscribe(e => {
if (e instanceof ChildActivationStart) {
spinner.start(e.route);
} else if (e instanceof ChildActivationEnd) {
spinner.end(e.route);
}
});
}
https://angular-update-guide.firebaseapp.com/
$ npm install @angular/{animations,common,compiler,
compiler-cli,core,forms,http,platform-browser,platform-browser-dynamic,
platform-server,router}@5.0.2
$ yarn add @angular/{animations,common,compiler,compiler-cli,core,
forms,http,platform-browser,platform-browser-dynamic,
platform-server,router}@5.0.2
npm
yarn
import { HttpClientModule } from '@angular/common/http';
Dropped the intl api in favour of data exported from the Unicode Common Locale Data Repository (CLDR)
RxJS is moving to lettable operators
import { Observable } from 'rxjs/Observable';
import 'rxjs/add/operator/map';
import 'rxjs/add/operator/filter';
names = allUserData
.map(user => user.name)
.filter(name => name);
import { Observable } from 'rxjs/Observable';
import { map, filter } from 'rxjs/operators';
names = allUserData.pipe(
map(user => user.name),
filter(name => name),
);
Instead of
You can now