Skip to content

Instantly share code, notes, and snippets.

@timfjord
Last active October 18, 2016 17:32
Show Gist options
  • Save timfjord/85aadbfb559d85c03a0995f58b28ba56 to your computer and use it in GitHub Desktop.
Save timfjord/85aadbfb559d85c03a0995f58b28ba56 to your computer and use it in GitHub Desktop.
<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>
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