Last active
August 29, 2015 14:17
-
-
Save vram1980/ec80fbbd1b4c8f3bd764 to your computer and use it in GitHub Desktop.
Using AngularJS with jekyll
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* | |
* 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> | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Nice one Vicente!