Created
May 26, 2015 14:20
-
-
Save johnlindquist/80919cd445f55efc39ba to your computer and use it in GitHub Desktop.
This file contains hidden or 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
function ClassRoom(){} | |
ClassRoom.annotations = [ | |
new angular.ComponentAnnotation({ | |
selector: "class-room" | |
}), | |
new angular.ViewAnnotation({ | |
template: "<h1>Windows, Chairs, Tables</h1>" | |
}) | |
]; | |
function Workshop(){} | |
Workshop.annotations = [ | |
new angular.ComponentAnnotation({ | |
selector: "workshop" | |
}), | |
new angular.ViewAnnotation({ | |
directives: [ClassRoom], | |
template: "<div><class-room></class-room></div>" | |
}) | |
]; | |
document.addEventListener("DOMContentLoaded", function(){ | |
angular.bootstrap(Workshop); | |
}); |
This file contains hidden or 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 lang="en"> | |
<head> | |
<meta charset="UTF-8"> | |
<title>AngularJS Jumpstart</title> | |
<link rel="stylesheet" href="bootstrap.min.css"/> | |
<script src="angular2.sfx.dev.js"></script> | |
<script src="app.js"></script> | |
</head> | |
<body> | |
<workshop></workshop> | |
</body> | |
</html> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment