Last active
October 18, 2016 17:32
-
-
Save timfjord/85aadbfb559d85c03a0995f58b28ba56 to your computer and use it in GitHub Desktop.
This file contains 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
<html ng-app="Demo"> | |
<head metang-head> | |
<title metang="prefix">My Site</title> | |
<meta name="description" content="Desc of my website" metang> | |
</head> | |
<body ng-controller="TestCtrl"> | |
</body> | |
</html> |
This file contains 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
angular.module('Demo').controller('TestCtrl', function($scope, metang) { | |
metang.title('Page title'); | |
metang.property('og', {description: 'Description'}); | |
metang.meta({description: 'Details description'}); | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment