-1
這就是我想過濾「MARCAS」當我點擊的代碼....我如何讓<a>向我展示帶過濾器的元素?
<body ng-controller="marcasController">
<a>Chevrolet</a>
<a>Renault</a>
<ul ng-repeat="marca in marcas">
<li ng-repeat="tipo in marca.modelo">{{tipo.nombre}}</li>
</ul>
</body>
--- SHOW我獨自一人一輛雷諾或雪佛蘭取決於做點擊這裏---
var app = angular.module('App', []);
app.controller('marcasController', ['$scope', function($scope) {
$scope.marcas =[
{
"nombre": "Chevrolet",
"image": "images/aveo.jpg",
"modelo": [
{"nombre":"aveo", "color":"black"},
{"nombre":"corsa", "color":"yellow"}
],
"tab": "aveo"
},
{
"nombre": "Renault",
"image": "images/aveo.jpg",
"modelo": [
{"nombre":"clio", "color":"black"},
{"nombre":"sandero", "color":"red"}
],
"tab": "aveo"
},
];
}])
告訴我雷諾單獨或雪佛蘭依賴於在哪裏點擊
完善,如何使顯示所有再次.....謝謝 – Gerard 2014-12-05 20:58:16
[''...(http://codepen.io/anon/pen/dPGMgw)_And ......來吧,你嘗試過再次尋求幫助之前的任何事情?_ – hon2a 2014-12-05 21:21:10