Created
January 22, 2014 10:22
Revisions
-
lucassus created this gist
Jan 22, 2014 .There are no files selected for viewing
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 charactersOriginal file line number Diff line number Diff line change @@ -0,0 +1,21 @@ <!DOCTYPE html> <html> <head> <script src="http://code.jquery.com/jquery.min.js"></script> <link href="http://getbootstrap.com/dist/css/bootstrap.css" rel="stylesheet" type="text/css" /> <link href="//netdna.bootstrapcdn.com/font-awesome/4.0.3/css/font-awesome.css" rel="stylesheet"> <script src="http://getbootstrap.com/dist/js/bootstrap.js"></script> <script src="https://ajax.googleapis.com/ajax/libs/angularjs/1.2.3/angular.min.js"></script> <meta charset=utf-8 /> <title>JS Bin</title> </head> <body ng-app="myApp"> <panel> <a href="" class="btn btn-default">Click me!</a> </panel> </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 charactersOriginal file line number Diff line number Diff line change @@ -0,0 +1,10 @@ var myApp = angular.module("myApp", []); myApp.directive("panel", function() { return { restrict: "E", replace: true, transclude: true, template: '<div class="panel" ng-transclude>This is a panel</div>' }; });