Created
April 22, 2015 13:33
-
-
Save lhridley/dd4609d1b43d56cdfef3 to your computer and use it in GitHub Desktop.
angular-listing.tpl.php
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
<div ng-app="nodeListing"> | |
<div ng-controller="ListController"> | |
<h3>Filter</h3> | |
<input type="text" ng-model="nodeFilter"> | |
<ul ng-cloak> | |
<li ng-repeat="node in nodes | filter:nodeFilter | orderBy:'title' | limitTo:150"><button ng-click="open(node.nid)">Open</button> {{ node.title }}</li> | |
</ul> | |
<script type="text/ng-template" id="loadedNodeTemplate"> | |
<div class="myCustomDialogBox"> | |
<h3>{{ loadedNode.title }}</h3> | |
<div class="image"><img ng-src="{{loadedNode.image.src}}" title="{{loadedNode.image.alt}}"alt="Node Image"/></div> | |
<div class="nodeBody">{{ loadedNode.body }}</div> | |
<div class="nodeLink"><a href="node/{{loadedNode.nid}}">See Full Information</a> | |
</div> | |
</script> | |
</div> | |
</div> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment