urigo:angular-blaze-template

v0.3.0Published 8 years ago

This package has not had recent updates. Please investigate it's current state before committing to using it in your project.

urigo:angular-blaze-template

<blaze-template>

Include Blaze templates in your angular-meteor application.

Quick start

In the command line: $ meteor add urigo:angular-blaze-template

You can include Meteor's Blaze native templates with the blaze-template directive.

1<template name="todoList">
2    A couple of todos
3</template>
4
5<blaze-template name="todoList"></blaze-template>

replace directive with template content

Sometimes, the page styling or logic could strictly depend on the DOM tree depth level where the template elements are located. The directive element could be replaced with the contents of the template using the attribute replace as follows:

1<blaze-template name="todoList" replace></blaze-template>

WARNING: If replace is used, the original directive DOM element will be completely removed and replaced with the content of the template. Therefore, it will not be possible to use replace in combination with any other directive, like ng-if or ng-switch.

Next steps

Read more on blaze-template, using parameters and binding Blaze templates to Angular's scope in the API docs.