Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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
- Host: GitHub
- URL: https://github.com/mrkmg/laravel-elixir-angularify
- Owner: mrkmg
- Created: 2016-04-17T14:24:46.000Z (over 8 years ago)
- Default Branch: master
- Last Pushed: 2016-04-17T17:13:29.000Z (over 8 years ago)
- Last Synced: 2024-11-22T08:49:08.227Z (about 2 months ago)
- Language: JavaScript
- Size: 3.91 KB
- Stars: 0
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
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