Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

ng-templates-brunch

Package Overview
Dependencies
Maintainers
1
Versions
4
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

ng-templates-brunch

Wrap templates in an AngularJS module for Brunch.IO

  • 0.0.3
  • latest
  • npm
  • Socket score

Version published
Weekly downloads
1
Maintainers
1
Weekly downloads
 
Created
Source

Wrap templates in an AngularJS module for Brunch.IO
Dependency Status Stories in Ready

For each template, wrap around in a shared AngularJS module called templates by default with each template file's path as the template URL. See $templateCache for more information.

Installation

npm install --save ng-templates-brunch

Usage

  1. Set joinTo attribute for templates in config.coffee, e.g.
templates:
  joinTo:
    'templates.js': /^app/
  1. In your markup, include templates.js:
<script type="text/javascript" src="/templates.js"></script>
  1. Your app module must require an templates module:
angular.module('MyApp', [
  ...
  'templates'
  ...
]);
  1. Get a particular template by its path.
$routeProvider.when('/home', { templateUrl: 'app/home/home.html' });
  1. Run Brunch (e.g. brunch build)!

Options

module

Specify the module to place the templates in

Default: templates

plugins:
  ngTemplates:
    module: 'MyModule'

FAQs

Package last updated on 15 Nov 2013

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc