Skip to content

Instantly share code, notes, and snippets.

@kalbarczyk
Created March 17, 2015 23:54
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save kalbarczyk/682dfc8b32796ed579c1 to your computer and use it in GitHub Desktop.
Save kalbarczyk/682dfc8b32796ed579c1 to your computer and use it in GitHub Desktop.
Dyrktywa szyta na miarę!
<!doctype html>
<html data-ng-app="app">
<head>
<title>AngularJS - Dyrktywa szyta na miarę</title>
</head>
<body>
<div>
<div wjs-first></div>
<br />
<wjs-first></wjs-first>
</div>
<script src="https://ajax.googleapis.com/ajax/libs/angularjs/1.3.14/angular.js"></script>
<script>
(function () {
'use strict';
angular
.module('app', []);
})();
(function () {
'use strict';
angular.module('app')
.directive('wjsFirst', wjsFirst);
function wjsFirst() {
return {
restrict: 'EA',
template: '<div>Dyrktywa szyta na miarę!</div>'
}
}
})();
</script>
</body>
</html>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment