Skip to content

Instantly share code, notes, and snippets.

@liorkesos
Created July 25, 2013 13:27
Show Gist options
  • Save liorkesos/6079589 to your computer and use it in GitHub Desktop.
Save liorkesos/6079589 to your computer and use it in GitHub Desktop.
internal object links
<section data-ng-controller="TripController">
<h1>Trip Information</h1>
<accordion close-others="oneAtATime">
<accordion-group heading="{{group.title}}" ng-repeat="group in groups">
{{group.content}}
<ul ng-repeat="link in {{group.links}}">
<li>{{link}}</li>li>
</ul>
</accordion-group>
</accordion>
</section>
function TripController($scope) {
$scope.oneAtATime = true;
$scope.groups = [
{
title: "Trip options and dates",
content: "trip options data"
},
{
title: "Itenereies",
content: "Dynamic Group Body - 2",
links: ['Young Proffesional Trips','Student Trips']
},
{
title: "Photos",
content: "Dynamic Group Body - 2"
},
{
title: "How to Register",
content: "Dynamic Group Body - 2"
},
{
title: "Elgibility",
content: "Dynamic Group Body - 2"
},
{
title: "Trip Extensions",
content: "Dynamic Group Body - 2"
}
];
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment