Created
February 18, 2014 01:20
-
-
Save sbosell/9062748 to your computer and use it in GitHub Desktop.
Umbraco Angular Home Template
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
| @inherits Umbraco.Web.Mvc.UmbracoViewPage<App.Models.AngRenderModel> | |
| @{ | |
| Layout = Model.isApp ? "Blank.cshtml" : "Static.cshtml"; | |
| } | |
| @section Content { | |
| @if (Model.isApp) | |
| { | |
| <article umb-children="content.Id" cycle="{slides: '>div'}" style="clear: both"> | |
| <div ng-repeat="slider in children"> | |
| <div>{{slider.Name}}</div> | |
| <img umb-media="slider.Properties.image.DataValue" /> | |
| </div> | |
| </article> | |
| <aside> | |
| <h3>{{content.Name}}</h3> | |
| <p ng-bind="html(content.body)"></p> | |
| </aside> | |
| } | |
| else | |
| { | |
| <div>@Model.Content.Name</div> | |
| } | |
| } | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment