Important: This documentation covers Yarn 1 (Classic).
For Yarn 2+ docs and migration guide, see yarnpkg.com.

Package detail

angular2-meteor

Urigo257MIT0.8.0TypeScript support: included

Angular 2.0 and Meteor - the perfect stack http://www.angular-meteor.com/

angular, angular2, angular2-meteor, meteor, mongo, typescript, html-templates

readme

Join the chat at https://gitter.im/Urigo/angular-meteor

Angular1-Meteor Build Status npm version

Angular2-Meteor Build Status npm version bitHound Overall Score bitHound Dependencies

The power of Meteor and the simplicity and eco-system of Angular

ng-conf

Documentation and Getting Started

Usage

Go to the official docs

Tutorial

If you are new to Angular2 and/or Meteor but want to learn them quickly, please check out our 23-steps Angular2-Meteor tutorial.

Quick Start Using Angular2-Meteor

   $ meteor create --example angular2-boilerplate myApp
   $ cd myApp
   $ meteor npm install

Alternatively, use your web browser to access the link: https://github.com/Urigo/angular2-meteor-base Download the template application, and unzip the files inside.

Then run:

   $ meteor

Contributing

Please read the contributing instructions at the contributing page.

Acknowledgement

This project started as ngMeteor, a pre-0.9 meteorite package. Since then a lot has changed but that was the main base.

Also, a lot of features were inspired by @superchris's angular-meteor fork of ngMeteor

changelog

0.7.0-beta.1 (2016-08-21)

Bug Fixes

0.6.2 (2016-07-20)

Bug Fixes

0.6.0 (2016-07-09)

Breaking Changes

Importing URLs of the component templates in a way as import url from './foo.html' will be deprecated from `angular2-compilers@0.6.0in favor of the inline templates. That means the expression above will become nowimport template from './foo.html'`.

For the migration, we've added a special JS-module to `angular2-compilers@0.5.8that exports template content as well but with a special suffix added to the URL, i.e.,!rawand the whole path is./foo.html!raw. URLs like./foo.html!raware supported byangular2-compilers@0.6.0` as well allowing you to transit easily.

`angular2-compilers@0.6.0is based onurigo:static-html-compiler@0.1.4` (a0d28d3).

Features

  • Main Meteor methods are now patched to run ngZone after the callback executions (2145847). In other words, autoBind param of the MeteorComponent wrappers is set to true by default. Fixes this issue (thanks @staeke for the idea and discussion)
  • MeteorComponent is improved to support server side rendering. One can use angular2-meteor on the server along with angular2-meteor-universal
  • LESS and SASS compilers are added to `angular2-compilers@0.6.0. Angular2 components can start importing styles in the ES6 style (as templates), if styles are located in the rootimports` folder

Bug Fixes

  • MeteorComponent.autorun: #149 (d049759)
  • Issue with promises: #238 (a611ed8)

Other

  • Angular2-Meteor for Meteor 1.2 based on SystemJS have been deprecated (old code can be found in the legacy branch)
  • Usage Gulp in the build have been deprecated in favor of NPM scripts
  • Tests have been moved to be based on Mocha and Chai (Meteor 1.3 style)

0.3.3

Breaking Changes

  • This package is no longer supported from Atmosphere, and will be installed from NPM from Meteor 1.3 and up.
  • Removed bootstrap module (angular2-meteor/bootstrap) in favor of the original Angular 2.0 bootstrap's.
  • Removed packages/* - they will be moved into a separated NPM modules in the future.
  • Imports location will be defined as NPM imports: import {SomePackage} from 'angular2-meteor/cursor_handlers';
  • Removed the need for SystemJS, now uses Meteor's ES6 imports that depends on CommonJS.

Updates

  • Build process now use Webpack instead of Meteor build tool.
  • Tests now executed inside a Meteor context which means that there is a meteor app that uses the actual code, because Angular2-Meteor now does not depends of Meteor packages system (Atmosphere) and uses NPM instead.

v0.3.2

Updates

Angular 2 upgraded to the first beta version.

v0.3.0

Updates

Angular 2 upgraded to the last version.

Breaking Changes

  • In the latest releases of Angular 2 (alpha-50 and up) angular2/angular2 namespace were devided into several new ones, mainly, angular2/core and angular2/common
  • The dash symbol were removed in the selectors of main directives, i.e., instead of ng-if you should use ngIf now

For more information about the latest API, please, refer to the official docs.

In order to get new Angular 2 definition files, you'll need to remove typings\angular2 folder and typings\angular2.d.ts file to let the package install updated version.