Skip to content

Instantly share code, notes, and snippets.

@geelen
Created August 9, 2012 08:08
Show Gist options
  • Save geelen/3302211 to your computer and use it in GitHub Desktop.
Save geelen/3302211 to your computer and use it in GitHub Desktop.
Goodfilms Angular App example
<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>
<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