Created
July 25, 2013 13:27
-
-
Save liorkesos/6079589 to your computer and use it in GitHub Desktop.
internal object links
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
<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> |
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
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