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
- Host: GitHub
- URL: https://github.com/dotansimha/angular2-blaze-template
- Owner: dotansimha
- Created: 2016-06-16T14:02:27.000Z (over 9 years ago)
- Default Branch: master
- Last Pushed: 2022-06-26T10:12:33.000Z (over 3 years ago)
- Last Synced: 2025-05-08T23:48:15.088Z (8 months ago)
- Language: JavaScript
- Size: 42 KB
- Stars: 6
- Watchers: 3
- Forks: 0
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
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).