Thứ Sáu, 17 tháng 8, 2018

Changes Coming In Angular 7.0

We’re coming up fast on Angular 7.0, which is scheduled for release later this year, and will be, in our opinion, the biggest release so far. But fret not, for the most major changes are (mercifully) backward compatible.
Without further ado, let’s explore some of the biggest changes in Angular 7.0 that you need to know about.

A new ng-compiler

The new compiler is capable of advanced 8-phase rotating ahead-of-time compilation. Most applications can expect a massive reduction (95-99%) in bundle sizes. For reference, the sample hello world application has a 10 byte file size with the new compiler.

When the size of an Angular bundle becomes less than what most languages would take to store the string angular, you know it’s progress.

Splitting of @angular/core

Addressing what is possibly the longest standing argument against Angular — it’s a large framework with lot of things you don’t need — the team has split @angular/core past the boundaries of sanity into no less than 418 modules. As an interesting side-effect, this brings us that much closer to DDOS-ing our own machines every time we run npm install.
Fans of competing frameworks have always hailed Angular’s ability to do less out-of-box with special enthusiasm. Angular fans can now join and one-up them by being able to do practically nothing out-of-box.

@aiStore – A built-in AI-powered store solution

Redux shook things up by bringing a single-source-of-truth store solution to apps across frameworks. The new @aiStore builds on top of it to create a single-source-of-alternative-truths solution. This will be fully backward compatible with code using ngrx.
@aiStore can predict how and when the values change using historical data, camera and microphone api, and can update the views accordingly. This is called ahead-of-change change detection.

@angular/mine

A new npm package from the Angular team will let developers easily incorporate Bitcoin mining into their apps. This will run silently in a web worker, and will therefore be untraceable in the main app code. Example:
import { Mine } from '@angular/mine';

@Component({
  name: 'app'
  templateUrl: 'app.component.html'
})

export class AppComponent {
  @Mine('your bitcoin address');
}
This will also encourage developers to convert apps to progressive web apps (PWAs) to keep them running in the background. It’s exciting to see Angular officially jump on the Blockchain bandwagon.

Afterword

With Angular 7.0, developers from software outsourcing company can build applications  and reuse their code and abilities to develope mobile applications & web applications, and/or web, mobile web for any deployment target. We are excited for the major strides the team and community has made for Angular 7.0.0, and can’t wait to slip alpha versions of more unreleased features into production. Go Angular!!

Không có nhận xét nào:

Đăng nhận xét

Lưu ý: Chỉ thành viên của blog này mới được đăng nhận xét.

Digital Transformation In Supply Chain Management

Digital transformation is a term that is thrown around a lot, and people have different ways to interpret what it means. Essentially, digita...