Angularjs--bootstrap (List-group)
1<! DOCTYPE html>234<meta charset= "UTF-8" >5<meta name= "viewport" content= "Width=device-width, initial-scale=1, maximum-scale=1, User-scalable=no" >6<title>index</title>7<link href= "{$Think. Const. Cssurl}bootstrap.min.css "rel=" stylesheet "type=" Text/css "/>8<script src= "{$Think. Const. Js}jquery.min.js "type=" Text/javascript "></script>9<script src= "{$Think. Const. Js}bootstrap.min.js "type=" Text/javascript "></script>Ten<script src= "{$Think. Const. Js}angular.min.js "type=" Text/javascript "></script> One<link href= "{$Think. Const. Cssurl}home/index.css "rel=" stylesheet "type=" Text/css "/> A -<body ng-app= "MyApp" ng-controller= "Myctrl" > -<divclass= "Container" > theclass= "Page-header" > Front-end technical solutions -<divclass= "List-group" > -<a href= "#"class= "List-group-item Active" ng-repeat= "user in Users" >{{user.name}}</a> -<a href= "#"class= "List-group-item" ng-repeat= "user in Users2" >{{user.name}}</a> +</div> -$Think. Const. Homeimg}/01.png "/> +</div> A</body> at<script> -Angular.module ("MyApp", []). Controller ("Myctrl",function($scope){ - $scope. Users = [ -{"id": "1", "Name": "Tom", "Age": "10"}, -{"id": "2", "Name": "Jack", "Age": "20"}, -{"id": "3", "name": "Shook", "Age": "10"}, in{"id": "4", "Name": "Beta", "Age": "10"}, -{"id": "5", "Name": "Yii", "Age": "12"}, to{"id": "6", "Name": "Ci", "Age": "16"}, + ]; - the $scope. users2 =$scope. Users.splice (1); * $ });Panax Notoginseng</script> -
Angularjs--bootstrap (List-group)