Skip to content

Instantly share code, notes, and snippets.

@vram1980
Last active August 29, 2015 14:17
Show Gist options
  • Save vram1980/ec80fbbd1b4c8f3bd764 to your computer and use it in GitHub Desktop.
Save vram1980/ec80fbbd1b4c8f3bd764 to your computer and use it in GitHub Desktop.
Using AngularJS with jekyll
/*
* Credit goes to: https://tuananh.org/2015/01/14/using-angularjs-with-jekyl
*/
var myApp = angular.module('myApp', [], function($interpolateProvider) {
$interpolateProvider.startSymbol('[[');
$interpolateProvider.endSymbol(']]');
});
myApp.controller('TestCtrl', [
'$scope',
function($scope){
$scope.myName = 'you';
}]);
<div ng-controller="TestCtrl">
Hello, [[ myName ]]
</div>
@ItsMeAra
Copy link

Nice one Vicente!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment