Using Rainbow with Angular
After following the instructions for setting up Rainbow, include this directive:
/**
* Directive for using rainbow syntax highlighter with angular
*/
angular.module('MyApp')
angular.module('TreelineExample').controller('AppCtrl', [ | |
'$scope', '$timeout', '$http', | |
function ($scope, $timeout, $http){ | |
console.log('running!'); | |
$scope.homepage = {}; | |
$scope.homepage.messageSent = false; | |
$scope.sendmessage = function() { |
/** | |
* gravatar | |
* ------------------------------------------------------------------------ | |
* This is a custom directive for using gravatars. | |
* | |
* Usage: | |
* ``` | |
* <gravatar email="[email protected]" | |
* default-img="http://placecage.com/c/200/200"></gravatar> | |
* ``` |
After following the instructions for setting up Rainbow, include this directive:
/**
* Directive for using rainbow syntax highlighter with angular
*/
angular.module('MyApp')
#How to set up a Sails Generator
cd into the directory where you keep this kind of thing, and do:
sails generate generator GENERATOR-NAME
cd GENERATOR-NAME
# | |
# Installing the v0.10 "edge" version of Sails | |
# | |
$ sudo npm install -g sails@git://github.com/balderdashy/sails.git#v0.10 |