Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Does Aurelia have ng-template alternative?

I am curious is that possible to compile Aurelia js application to one minified.js file. With templates to avoid extra requests at production?

Similar to ng-template https://www.npmjs.com/package/gulp-ng-templates in angular

like image 638
Egor Malkevich Avatar asked Dec 11 '15 16:12

Egor Malkevich


People also ask

Is Aurelia similar to Angular?

Angular and Aurelia, descendants of good old JavaScript Angular 1, are fierce competitors, developed and released at approximately the same time and with a similar philosophy, but differing in a number of key ways. In this article, we'll do side-by-side comparisons of those differences in features and code.

Is Aurelia framework good?

Aurelia works well with other frameworks and has an advantage in interoperability over Angular. For example, Developers can use React components by creating a custom Aurelia element. Aurelia also works with Polymer, since they're both based on the WebComponents standards.

What is the use of ng template in angular 6?

What is ng-template in Angular? ng-template is an Angular element that is used for rendering HTML in a template. However, it is not rendered directly on DOM. If you include an ng-template tag to a template, the tag and the content inside it will be replaced by comment upon render.


1 Answers

Aurelia apps can be bundled. There's a couple ways to do this:

  1. Use the aurelia bundler
  2. Use jspm bundle directly
like image 149
Jeremy Danyow Avatar answered Oct 01 '22 09:10

Jeremy Danyow