十年網(wǎng)站開發(fā)經(jīng)驗 + 多家企業(yè)客戶 + 靠譜的建站團隊
量身定制 + 運營維護+專業(yè)推廣+無憂售后,網(wǎng)站問題一站解決
本文實例講述了AngularJS實現(xiàn)select的ng-options功能。分享給大家供大家參考,具體如下:
controller
.controller('MainController', function($scope, $http, $ionicModal, $timeout) { var post = {}; $http.get("data/themeData.json") .success(function(response) { $scope.themeData = response.themeData; }); $ionicModal.fromTemplateUrl('templates/post.html', { scope: $scope }).then(function(modal) { $scope.modal = modal; }); $scope.postShow = function() { post = $scope.post = {}; $scope.modal.show(); }; $scope.cancelPost = function() { $scope.modal.hide(); }; $scope.doPost = function() { console.log('doPost-----'); console.log(post); $timeout(function() { $scope.cancelPost(); }, 1000); }; })
另外有需要云服務器可以了解下創(chuàng)新互聯(lián)建站www.cdcxhl.com,海內外云服務器15元起步,三天無理由+7*72小時售后在線,公司持有idc許可證,提供“云服務器、裸金屬服務器、高防服務器、香港服務器、美國服務器、虛擬主機、免備案服務器”等云主機租用服務以及企業(yè)上云的綜合解決方案,具有“安全穩(wěn)定、簡單易用、服務可用性高、性價比高”等特點與優(yōu)勢,專為企業(yè)上云打造定制,能夠滿足用戶豐富、多元化的應用場景需求。