Communiquez avec les autres et partagez vos connaissances professionnelles

Inscrivez-vous ou connectez-vous pour rejoindre votre communauté professionnelle.

Suivre

Have you tried to use Aurelia JavaScript framework? Do you think it's better than React JS? Angular JS?

user-image
Question ajoutée par Utilisateur supprimé
Date de publication: 2017/04/10
Hussain Maqsood
par Hussain Maqsood , Software Engineer (Web Developer) , First Flight Travels & Tourism

While Google was working on Angular 2 update, another framework called Aurelia js emerged. It is a product from Durandal Inc. and being advertised as “the next generation UI Framework” and “the most advanced and developer friendly front-end framework today”. It has few specific features that our team at ValueCoders found interesting and useful to our project works. Let’s start Aurelia vs Angular (2 & 1) comparison with Routing Composition-

1) Routing & UI Composition: (Angular vs Aurelia)

The advanced client-side router with the  dynamic route patterns, child routers, pluggable pipeline, & asynchronous screen activation. In fact, you can do dynamic, data-driven UI composition without a router.

Also, Through a router-view like component, any number of routes can be handled. Here’s an example:

“app.html”:<div><router-view></router-view></div>“app.js”:export class App {configureRouter(config, router) {title = ‘Title for App’;config.map([{ route: [‘/routeName/’],             name: ‘FileNameToRun’,              moduleId: ‘PathOfFileToRun’, nav: true, title:’Title for Route’ }]);this.router = router;}}

These features are also there in Angular 2, however, Angular was ideally built as a monolithic framework. All of its components were wrapped into one large bundle. This monolithic architecture made it difficult to remove components and change them when necessary.

 

Aurelia js, on  the other hand takes a more modern approach. While it’s a full framework, it is composed of a collection of libraries that work together using well-defined interfaces — so that it’s completely modular. This means that a web app only needs to include the dependencies that it needs. Further, though, it means that as long as implementations cohere to the defined interface, individual components can be swapped or changed with minimal confusion.

More Questions Like This