Skip to content

cheekycms/cheeky-angular

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

cheeky-angular

NPM version NPM downloads Bower version Dependencies status MIT license

Angular Plugin for Cheeky CMS.

Usage

    <script src="/bower_components/angular/angular.min.js"></script>
    <script src="/bower_components/angular-sanitize/angular-sanitize.min.js"></script>
    <script src="/bower_components/angular-cache/dist/angular-cache.min.js"></script>
    <script src="/bower_components/lodash/lodash.min.js"></script>
    <script src="/src/cheeky-angular.js"></script>
    <script src="http://www.alohaeditor.org/download/aloha.min.js"></script>

Configure the css key maps

angular.module('app', ['ngSanitize', 'cheeky'])
    .config(function(cheekyCMSProvider){
        cheekyCMSProvider.map({
            "content": "http://something.com/content.json",
            "crumpet": "crumpet.json"
        });
    });

Development

$ npm install
$ gulp serve

Open a browser to http://localhost:6080/example. Changes will autoreload.

License

MIT