mirror of
https://github.com/ionic-team/ionic-framework.git
synced 2026-03-13 10:22:08 +08:00
release: 1.0.0-beta.1
This commit is contained in:
@@ -110,6 +110,8 @@ New Code:
|
||||
* **ionNavBar, ionView**: Remove `left-buttons`, `right-buttons`, `type`, `animation`,
|
||||
`back-button-*` attributes from ionNavBar. Remove `left-buttons`, `right-buttons` from ionView.
|
||||
|
||||
Additionally, all 'viewState.*' have been removed.
|
||||
|
||||
Relevant Documentation: [ionNavBar](http://ionicframework.com/docs/api/directive/ionNavBar),
|
||||
[ionView](http://ionicframework.com/docs/api/directive/ionView),
|
||||
[ionNavBackButton](http://ionicframework.com/docs/api/directive/ionNavBackButton) (new),
|
||||
|
||||
@@ -1,60 +0,0 @@
|
||||
<html ng-app="radioButtonTest">
|
||||
<head>
|
||||
<meta charset="utf-8">
|
||||
<title>Radio</title>
|
||||
|
||||
<!-- Sets initial viewport load and disables zooming -->
|
||||
<meta name="viewport" content="initial-scale=1, maximum-scale=1, user-scalable=no">
|
||||
<link rel="stylesheet" href="../../../../dist/css/ionic.css">
|
||||
<script src="../../../../dist/js/ionic.bundle.js"></script>
|
||||
</head>
|
||||
<body>
|
||||
|
||||
<header class="bar bar-header bar-danger">
|
||||
<h1 class="title">Beans</h1>
|
||||
</header>
|
||||
<ion-content class="has-header" class="reveal-animation">
|
||||
<div ng-controller="TestCtrl">
|
||||
|
||||
<div class="list">
|
||||
<label class="item item-input">
|
||||
<span class="input-label">Units</span>
|
||||
|
||||
<!--<ion-radio-buttons ng-model="data.isLovely">-->
|
||||
<div class="button-bar">
|
||||
<button class="button button-assertive button-radio" ng-value="'magical'" ng-click="magical()">Magical</button>
|
||||
<button class="button button-assertive button-radio" ng-value="'black'">Black</button>
|
||||
<button class="button button-assertive button-radio" ng-value="'pinto'">Pinto</button>
|
||||
</div>
|
||||
</label>
|
||||
</div>
|
||||
|
||||
<form>
|
||||
<button ng-click="cycle()" class="button button-warning">Cycle</button>
|
||||
<button ng-click="doIt()" class="button button-warning">Print</button>
|
||||
</form>
|
||||
</div>
|
||||
</ion-content>
|
||||
|
||||
<script>
|
||||
angular.module('radioButtonTest', ['ionic'])
|
||||
|
||||
.controller('TestCtrl', function($scope) {
|
||||
$scope.magical = function() {
|
||||
console.log('Mgical');
|
||||
};
|
||||
$scope.data = {};
|
||||
var items = ['magical', 'black', 'pinto'];
|
||||
var i = 0;
|
||||
$scope.cycle = function() {
|
||||
$scope.data.isLovely = items[i++ % items.length];
|
||||
};
|
||||
$scope.doIt = function() {
|
||||
console.log('DOIT', $scope.data);
|
||||
}
|
||||
});
|
||||
|
||||
</script>
|
||||
</body>
|
||||
</html>
|
||||
|
||||
@@ -354,14 +354,14 @@
|
||||
};
|
||||
})
|
||||
|
||||
.controller('AutoDetailCtrl', function($scope, $state, $stateParams) {
|
||||
.controller('AutoDetailCtrl', function($scope, $state, $stateParams, $ionicNavBarDelegate) {
|
||||
$scope.autoDetailData = "AutoDetailCtrl Data";
|
||||
|
||||
$scope.hideBackButton = function() {
|
||||
$scope.$emit('viewState.showBackButton', false);
|
||||
$ionicNavBarDelegate.showBackButton(false);
|
||||
};
|
||||
$scope.showBackButton = function() {
|
||||
$scope.$emit('viewState.showBackButton', true);
|
||||
$ionicNavBarDelegate.showBackButton(true);
|
||||
};
|
||||
|
||||
$scope.auto = $scope.autos[$stateParams.id];
|
||||
|
||||
@@ -1,8 +1,8 @@
|
||||
{
|
||||
"name": "ionic",
|
||||
"private": false,
|
||||
"version": "0.9.27",
|
||||
"codename": "salamander",
|
||||
"version": "1.0.0-beta.1",
|
||||
"codename": "actinium",
|
||||
"repository": {
|
||||
"url": "git://github.com/driftyco/ionic.git"
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user