Meteor have released the updated version of Angular Meteor, the library for using AngularJS on top of Meteor.
Uri Goldshtein, creator of the angular-meteor library, announced version 1.2 on the Meteor blog in the post Angular Meteor 1.2.0 Released. "[Angular-Meteor] takes advantage of the new build process introduced in Meteor 1.2 to make Angular developers feel even more comfortable and productive," Goldshtein said, adding that the new caching compilers make the build process faster.
Major changes with 1.2 include using Angular to process regular HTML
and JS
files instead of .ng.html
and .ng.js
, and existing users are advised to rename all .ng.html
files to .html
and remove the blaze-html-templates
package to reduce load time on the client.
Notable in the new release's improvements is that the package processes JS
files with Babel for ECMAScript 2015 support and ng-annotate
out of the box, as well as adding the decorators
syntax from Babel, with the aim of making it simpler to use the pbastowski:angular2-now
package. This allows developers to write Angular 2.0 syntax in their Angular 1.x application, a recommended best practice.
Goldshtein says changes to the AP are expected in the major 1.3 release, including making API data "as similar as possible" to the current and the future native Meteor API, and performance improvements from removing the autobind
feature. Developers are already able to use $meteor
services without autobind
(sending false
to that parameter.)
Alongside the project's live templating engine, Blaze, Meteor has supported AngularJS since the recent 1.2 release where the angular
package was integrated with the the Meteor stack. Also since Meteor 1.2 the project uses ECMAScript 2015 by default, in every JavaScript file.
The Angular-Meteor Manifesto says it "allows developers to use both Blaze and AngularJS in the same application and even on the same page, template or directive." Developers wanting to continue using the old build process, and combining Blaze and Angular templates, can use the angular-with-blaze
package instead of `angular`, and can use the same ng.html
and ng.js
file extensions with urigo:angular-blaze-template package.
Contributors are actively encouraged to the Angular Meteor project, particularly in the areas of Tutorial, and Roadmap.