close
  • In chevron_right

    What’s new in Angular 13

    pubsub.slavino.sk / infoworldcom · Thursday, 4 November, 2021 - 00:00 edit

Angular 13, the latest upgrade to Google’s popular TypeScript-based web framework that promises to be “100 percent Ivy,” is now available as a production release.

Ivy is the Angular next-generation compilation and rendering engine, which Angular has been supporting in recent releases while maintaining support for the predecessor View Engine. Support for the Ivy library is being completed in Angular 13, and support for View Engine is being removed. Performance updates also are being highlighted in Angular 13, impacting areas such as Adobe Fonts and the ESBuild JavaScript bundler, with ESBuild now supporting CSS sourcemaps, enabling optimized global CSS.

To read this article in full, please click here


Značky: #Rozne, #JavaScript, #Typescript, #Angular

  • In chevron_right

    Angular proposal would make NgModules optional

    pubsub.slavino.sk / infoworldcom · Thursday, 28 October, 2021 - 21:00 edit

The developers of Angular, the popular TypeScript-based web framework, are considering making NgModules optional. The goal is to shift Angular toward a simpler reuse model to improve the developer experience.

An RFC (request for comment) proposal being floated on GitHub, titled “Standalone components, directives and pipes — making Angular’s NGModules optional,” seeks to validate the intended design with the community, solicit feedback, and enable experimentation via a non-production-ready prototype. The RFC was posted October 8 and is slated to close no sooner than November 8.

To read this article in full, please click here


Značky: #Rozne, #Angular, #JavaScript, #Typescript

  • In chevron_right

    Angular 13 begins to take shape

    pubsub.slavino.sk / infoworldcom · Friday, 13 August, 2021 - 21:16 edit

Angular 13, a planned upgrade to Google’s popular TypeScript-based web framework, is starting to take shape. Two beta releases, published on August 4 and August 11 and accessible on GitHub , introduce changes to forms and the router.

For forms, Angular 13 debuts a new type, FormControlStatus , which is a union of all possible status strings for form controls. Also, AbstractControl.status has been narrowed from string to FormControlStatus and StatusChanges have been narrowed from Observable<any> to Observable<FormControlStatus> . Most applications should consume these new types seamlessly, according the Angular changelog.

To read this article in full, please click here


Značky: #Angular, #JavaScript, #Typescript, #Rozne

  • In chevron_right

    Angular 12 beta preview arrives

    pubsub.slavino.sk / infoworldcom · Thursday, 11 February, 2021 - 22:07 edit

Angular 12 , a planned upgrade to Google’s popular TypeScript-based web framework, has moved into a beta stage, with a preliminary release now available.

The project previously proposed that Angular 12 would get capabilities impacting production builds, support for the Webpack 5 bundler, and a host of other improvements. A preview build was published on February 10. A production release is expected in May. The beta, Angular 12.0.0-next.0 , is available on GitHub.

To read this article in full, please click here


Značky: #JavaScript, #Angular, #Rozne, #Typescript

  • In chevron_right

    Angular, React, Vue: JavaScript frameworks compared

    pubsub.slavino.sk / infoworldcom · Thursday, 11 February, 2021 - 11:00 edit

When considering React, Angular, and Vue, the first thing to note is that they carry the same notion at their cores: data binding. The idea here is that the framework assumes the work of tying the state of the application to the active elements of the interface. Each framework has its own idioms for accomplishing this, but it is the increased clarity of design in state-driven data binding that distinguishes this generation of frameworks from the previous one.

This kind of automatic state-driven architecture is sometimes referred to as a reactive system.

[ Also on InfoWorld: The most valuable software developer skills to get hired now ]

State-driven components

Figure 1 describes how state manifestation is handled without such frameworks. Figure 2 describes how it is handled with the frameworks.

To read this article in full, please click here


Značky: #React, #Angular, #Vue, #JavaScript, #Rozne

  • In chevron_right

    Angular adds error codes, debugging guides

    pubsub.slavino.sk / infoworldcom · Friday, 29 January, 2021 - 21:54 edit

To improve debugging and help developers solve problems quicker, the developers behind the Angular JavaScript framework have released standardized error codes and debugging guides for the platform.

Error codes are featured in the Angular 11.1.0 release, which was published January 20. The most common Angular error messages have been fitted with standardized error codes, details, and formatting.

[ What is TypeScript? Strongly typed JavaScript ]

Angular error messages start with NG, to help differentiate Angular-specific errors from TypeScript errors and browser messaging. The next number in the message indicates type, with runtime errors beginning with 0 and compiler issues maintaining their existing number space of 1 through 9. The goal of these changes is to help developers recognize framework errors and make them more searchable.

To read this article in full, please click here


Značky: #Angular, #JavaScript, #Rozne

  • In chevron_right

    How to handle errors in ReactJS

    pubsub.slavino.sk / infoworldcom · Thursday, 28 January, 2021 - 11:00 edit

Graceful error handling is an essential element of well designed software. This is true of front-end JavaScript user interfaces, and ReactJS provides specialized error handling for dealing with render-time errors. This article offers an overview for dealing with errors in ReactJS applications.

[ Also on InfoWorld: How to use React functional components ]

We can divide errors broadly into two types, and error handling into two aspects.

The two error types:

  1. JavaScript errors
  2. Render errors

JavaScript errors are those which occur in the code and can be handled with standard try/catch blocks, while render errors occur in the view templates and are handled by React error boundaries.

To read this article in full, please click here


Značky: #JavaScript, #Angular, #React, #Rozne

  • In chevron_right

    What’s new in Angular 11

    pubsub.slavino.sk / infoworldcom · Thursday, 12 November, 2020 - 23:30 edit

Angular 11, the latest upgrade to the Google-developed web framework, has just been published as a production release. Highlights include stricter types, router performance improvements, and automatic inlining of fonts.

With this last feature, apps are made faster by speeding up the first contentful paint . During compile time, the Angular CLI will download and inline fonts being used and linked in the application. Automatic font inlining will be enabled by default in apps with Angular 11. Applications will need to be updated to take advantage of this.

[ Also on InfoWorld: Tim O’Reilly: The golden age of the programmer is over ]

Available on GitHub , the Angular 11 production release follows a series of beta versions and release candidates. Other improvements in Angular 11 include:

To read this article in full, please click here


Značky: #Rozne, #JavaScript, #Angular