var liveapp = angular.module('liveapp', []);
liveapp.controller('liveCtrl', function($scope) {
$scope.Websites = [
{
'WebsiteId': 1,
'url': 'live24u',
},
{
'WebsiteId': 2,
'url': 'all',
},
{
'WebsiteId': 3,
'url': 'https://pakainfo.com/status/',
},
{
'WebsiteId': 4,
'url': 'https://pakainfo.com/tutorial',
},
{
'WebsiteId': 5,
'url': 'AngularJS - ng-repeat show one item at a time',
},
{
'WebsiteId': 6,
'url': 'AngularJS: Display one specific object in an array at a time',
},
{
'WebsiteId': 7,
'url': 'Show & Hide Div by Changing Class to Active - AngularJS',
}
];
$scope.selected = 0;
$scope.select= function(index) {
$scope.selected = index;
};
});