Created
August 9, 2012 08:08
-
-
Save geelen/3302211 to your computer and use it in GitHub Desktop.
Goodfilms Angular App example
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
<html ng-app="goodfilms"> | |
<!-- ... --> | |
<body ng-controller="FrameController"> | |
<header> <!-- Logo and menu buttons --> </header> | |
<div id="stage" ng-controller="FeedController"> | |
<ul class="events"> | |
<li class="event" ng-repeat="film in films"> | |
<!-- Friend's name, rating, and poster --> | |
<div class="actions" ng-controller="ActionsController"> | |
<!-- Markup for the buttons --> | |
</div> | |
</li> | |
</ul> | |
</div> | |
</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 characters
<body ng-controller="FrameController"> | |
<header ng-class="{menuopen: menuopen}"> | |
<div id="header"> ... </div> | |
<nav id="menu"> ... </nav> | |
</header> | |
<div id="main" ng-class="{menuopen: menuopen}"> | |
<div id="stage" ng-view> | |
</div> | |
<script type="text/ng-template" id="/views/feed.html"> ... </script> | |
<script type="text/ng-template" id="/views/film.html"> ... </script> | |
<script type="text/ng-template" id="/views/list.html"> ... </script> | |
</body> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment