An open API service indexing awesome lists of open source software.

https://github.com/dotansimha/angular2-blaze-template

Angular 2 Component that allows you to load Blaze templates
https://github.com/dotansimha/angular2-blaze-template

Last synced: 8 months ago
JSON representation

Angular 2 Component that allows you to load Blaze templates

Awesome Lists containing this project

README

          

[angular2-blaze-template](http://angular-meteor.com)
======================================================

### <blaze-template>

Include Blaze templates in your [angular-meteor](http://angular-meteor.com/) application to use Blaze templates inside your Angular 2 app.

### Quick start

In the command line: `$ meteor npm install angular2-blaze-template`

Import and include the `BlazeComponent` inside you Angular 2 Component:

```ts
import {Component} from "@angular/core";
import {bootstrap} from "@angular/platform-browser-dynamic";
import {BlazeTemplate} from 'angular2-blaze-template';

@Component({
selector: "app",
directives: [BlazeTemplate],
template: ``,
})
class Main {
constructor() {
}
}

bootstrap(Main);
```

You can include Meteor's Blaze native templates with the [blaze-template](http://angular-meteor.com/api/blaze-template) directive.

```html

```

You can also specify context for the Template (default context is `this` that created by Angular 2 Component):

```html

```

And define `mainTemplateArgs` in your Angular 2 Component.

### Next steps
Read more on blaze-template, using parameters and binding Blaze templates to Angular's Component in the [Angular2-Meteor website](http://angular-meteor.com).