Created
March 17, 2015 23:54
-
-
Save kalbarczyk/682dfc8b32796ed579c1 to your computer and use it in GitHub Desktop.
Dyrktywa szyta na miarę!
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
<!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