Skip to content

Instantly share code, notes, and snippets.

@sbosell
Created February 18, 2014 01:20
Show Gist options
  • Select an option

  • Save sbosell/9062748 to your computer and use it in GitHub Desktop.

Select an option

Save sbosell/9062748 to your computer and use it in GitHub Desktop.
Umbraco Angular Home Template
@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