mirror of
https://github.com/ionic-team/ionic-framework.git
synced 2026-03-13 10:22:08 +08:00
51 lines
750 B
JavaScript
51 lines
750 B
JavaScript
angular.module('ionicApp', ['ionic'])
|
|
|
|
.controller('MainCtrl', function ($scope) {
|
|
|
|
$scope.clientSideList = [
|
|
{
|
|
text: "Backbone",
|
|
value: "bb"
|
|
},
|
|
{
|
|
text: "Angular",
|
|
value: "ng"
|
|
},
|
|
{
|
|
text: "Ember",
|
|
value: "em"
|
|
},
|
|
{
|
|
text: "Knockout",
|
|
value: "ko"
|
|
}
|
|
];
|
|
|
|
$scope.serverSideList = [
|
|
{
|
|
text: "Go",
|
|
value: "go"
|
|
},
|
|
{
|
|
text: "Python",
|
|
value: "py"
|
|
},
|
|
{
|
|
text: "Ruby",
|
|
value: "rb"
|
|
},
|
|
{
|
|
text: "Java",
|
|
value: "jv"
|
|
}
|
|
];
|
|
|
|
$scope.data = {
|
|
clientSide: 'ng'
|
|
};
|
|
|
|
$scope.serverSideChange = function (item) {
|
|
console.log("Selected Serverside, text:", item.text, "value:", item.value);
|
|
};
|
|
|
|
}); |