Skip to content

Latest commit

 

History

History
80 lines (54 loc) · 2.08 KB

README.md

File metadata and controls

80 lines (54 loc) · 2.08 KB

browser-sync-angular-template


[![NPM version][npm-image]][npm-url] [![Dependency Status][daviddm-image]][daviddm-url] [![Coverage percentage][coveralls-image]][coveralls-url] [![Commitizen friendly][commitizen-image]][commitizen-url] > BrowserSync plugin for updating angular template without page reload.

Install

$ npm install --save-dev browser-sync-angular-template

Usage

// gulpfile.js
var browserSync = require('browser-sync');
var browserSyncAngularTemplate = require('browser-sync-angular-template');

browserSync.use(
  browserSyncAngularTemplate({
    templates: '/app/**/*.html',
    indexJs: 'index.module.js',
    moduleName: 'example'
  })
);

API

browserSyncAngularTemplate(options)

options

Type: Object

templates

Type: String

Pattern for templates files. They will be injected in runtime.

default: '**/*.html'

indexJs

Type: String

Plugin injects the starting script in this file in runtime.

default: 'index.js'

moduleName

Type: String

Module name. Used for get the access to required providers.

default: require(bower.json || package.json).name

TODO

  • E2e tests.
  • Test the proxy.
  • Create a smart injector.
  • Improve my english.

License

Apache-2.0 © Pavel Belugin