Ecosyste.ms: Awesome

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

Awesome Lists | Featured Topics | Projects

https://github.com/mrkmg/laravel-elixir-angularify

Laravel Elixir Mix to turn HTML Templates into Angular Modules so angular does not need to request html templates
https://github.com/mrkmg/laravel-elixir-angularify

Last synced: 30 days ago
JSON representation

Laravel Elixir Mix to turn HTML Templates into Angular Modules so angular does not need to request html templates

Awesome Lists containing this project

README

        

Laravel Elixir Angularify
============================

Current Version: 1.0.1

A Laravel Elixir mix to compile HTML into an Angular module to reduce the number of requests to a server to fetch html.

var elixir = require('laravel-elixir');

require('laravel-elixir-angularify');

elixir(function (mix) {
mix.angularify();
});

Then, in your angular project:

angular.module('MyApp', [
'CompiledTemplates'
]);

How to Install
--------------

npm install --save laravel-elixir-angularify

Full Featured Example
---------------------

Example with all *(default)* options:

var elixir = require('laravel-elixir');

require('laravel-elixir-angularify');

elixir(function (mix) {
mix
.angularify({
moduleName: 'CompiledTemplates', // The module Name
prefix: '/templates/', // Prefix to path (used inside angular)
search: '**/*.html', // Files to include, this shouldn't need to change
dest: 'public/js/', // Destination folder
src: 'public/templates/' // Source folder
});
});

Then run `gulp`

License: MIT