ng-switch指令
来源:互联网 发布:北京赛车pk10程序源码 编辑:程序博客网 时间:2024/06/07 06:24
<!DOCTYPE html><html ng-app="switchExample"><head> <meta charset="UTF-8"> <title></title> <script src="../js/angular.js"></script> <script> angular.module('switchExample', []) .controller('ExampleController', ['$scope', function($scope) { $scope.items = ['dog', 'cat', 'other']; $scope.selection = $scope.items[0]; }]); </script></head><body><div ng-controller="ExampleController"> <select ng-model="selection" ng-options="item for item in items"></select> <div ng-switch="selection"> <span ng-switch-when="dog">choose dog.</span> <span ng-switch-when="cat">choose cat.</span> <span ng-switch-default>choose other.</span> </div></div></body></html>
0 0
- ng-switch指令
- ng-switch指令
- ng-switch指令
- ng-switch
- ng-switch
- ng-show,ng-hide,ng-if指令
- ng-if 、ng-show、ng-switch 控制是否显示
- ng-hide指令
- ng-bind-html指令
- ng-repeat指令
- ng的一些指令
- 指令:ng-model
- 指令:ng-bind
- 指令:ng-click
- AngularJS ng-cloak 指令
- ng-model指令
- AngularJS ng-model 指令
- AngularJS ng-model 指令
- 十六进制颜色值和ARGB颜色值的转换
- http://lamp.phpstudy.net/
- java实现print打印
- 很有意思的流水账号的算法(java)
- 玉器网店banner小设计
- ng-switch指令
- hdu 2066 一个人的旅行
- [网狐]6603数据库说明
- hdoj还是畅通工程
- Android 5.0 SDK 下载地址
- UI025---静态单元格的使用
- vs2010编译libcurl
- Android的UIAutomator使用的一些事项
- 2015 Multi-University Training Contest 6(hdu5362 - Just A String)dp求期望