diff --git a/dist/css/ionic.css b/dist/css/ionic.css
index c06000b9b0..ddb5d0df4d 100644
--- a/dist/css/ionic.css
+++ b/dist/css/ionic.css
@@ -19,7 +19,7 @@
* Utility Mixins
* --------------------------------------------------
*/
-/*!
+/*
Ionicons, v1.3.3
Created by Ben Sperry for the Ionic Framework, http://ionicons.com/
https://twitter.com/helloimben https://twitter.com/ionicframework
@@ -2061,7 +2061,7 @@ sub {
fieldset {
margin: 0 2px;
padding: 0.35em 0.625em 0.75em;
- border: 1px solid #c0c0c0; }
+ border: 1px solid silver; }
/**
* 1. Correct `color` not being inherited in IE 8/9.
@@ -4206,7 +4206,7 @@ input[type="checkbox"][readonly] {
border-radius: 50%;
background: white;
content: ' ';
- transition: background-color .1s ease-in-out; }
+ transition: background-color 0.1s ease-in-out; }
/* the checkmark within the box */
.checkbox input:after {
@@ -4221,7 +4221,7 @@ input[type="checkbox"][readonly] {
border-right: 0;
content: ' ';
opacity: 0;
- transition: opacity .05s ease-in-out;
+ transition: opacity 0.05s ease-in-out;
-webkit-transform: rotate(-45deg);
transform: rotate(-45deg); }
@@ -4694,7 +4694,7 @@ input[type="range"] {
.button-icon:active, .button-icon.active {
background: none;
box-shadow: none;
- text-shadow: 0px 0px 10px #fff; }
+ text-shadow: 0px 0px 10px white; }
.padding > .button.block:first-child {
margin-top: 0; }
diff --git a/dist/css/themes/ionic-ios7.css b/dist/css/themes/ionic-ios7.css
index 41d2ed40e2..631acc5604 100644
--- a/dist/css/themes/ionic-ios7.css
+++ b/dist/css/themes/ionic-ios7.css
@@ -1,3 +1,4 @@
+@charset "UTF-8";
/**
* Button Mixins
* --------------------------------------------------
@@ -138,7 +139,7 @@
right: 20px;
transition: 0.2s ease;
transition-property: left, right;
- transition-delay: 0s, .05s; }
+ transition-delay: 0s, 0.05s; }
.toggle :checked + .track {
/* When the toggle is "on" */
@@ -153,4 +154,4 @@
right: 0;
left: 20px;
-webkit-transform: none;
- transition-delay: .05s, 0s; }
+ transition-delay: 0.05s, 0s; }
diff --git a/dist/js/ionic-angular.js b/dist/js/ionic-angular.js
index 3c0023f9e3..5612acf1c3 100644
--- a/dist/js/ionic-angular.js
+++ b/dist/js/ionic-angular.js
@@ -27,6 +27,11 @@ angular.module('ionic.ui', [
angular.module('ionic', [
'ionic.service',
'ionic.ui',
+
+ // Angular deps
+ 'ngAnimate',
+ 'ngTouch',
+ 'ngSanitize'
]);
;
angular.module('ionic.service.actionSheet', ['ionic.service.templateLoad', 'ionic.ui.actionSheet', 'ngAnimate'])
@@ -637,11 +642,26 @@ angular.module('ionic.ui.header', ['ngAnimate'])
restrict: 'E',
replace: true,
transclude: true,
- template: '',
+ template: '',
+
scope: {
+ leftButtons: '=',
+ rightButtons: '=',
+ title: '=',
type: '@',
- alignTitle: '@',
+ alignTitle: '@'
},
+
link: function($scope, $element, $attr) {
var hb = new ionic.views.HeaderBar({
el: $element[0],
@@ -652,6 +672,22 @@ angular.module('ionic.ui.header', ['ngAnimate'])
$scope.headerBarView = hb;
+ $scope.$watch('leftButtons', function(val) {
+ // Resize the title since the buttons have changed
+ hb.align();
+ });
+
+ $scope.$watch('rightButtons', function(val) {
+ // Resize the title since the buttons have changed
+ hb.align();
+ });
+
+ $scope.$watch('title', function(val) {
+ // Resize the title since the title has changed
+ console.log('Title changed');
+ hb.align();
+ });
+
$scope.$on('$destroy', function() {
//
});
@@ -1194,7 +1230,7 @@ angular.module('ionic.ui.sideMenu', ['ionic.service.gesture'])
$scope.sideMenuContentTranslateX = 0;
- $scope.sideMenuCtrl = this;
+ $scope.sideMenuController = this;
})
.directive('sideMenu', function() {
@@ -1544,7 +1580,7 @@ angular.module('ionic.ui.tabs', ['ngAnimate'])
};
},
template:
- '' +
+ '' +
'' +
'' +
' {{title}}' +
diff --git a/dist/js/ionic.js b/dist/js/ionic.js
index 29affd66a2..ce2ef5cd1c 100644
--- a/dist/js/ionic.js
+++ b/dist/js/ionic.js
@@ -2943,7 +2943,6 @@ window.ionic = {
title.style.left = margin + 'px';
title.style.right = margin + 'px';
- console.log(title.offsetWidth, title.scrollWidth);
if(title.offsetWidth < title.scrollWidth) {
title.style.textAlign = 'left';
title.style.right = (rightWidth + 5) + 'px';
diff --git a/examples/demos/toderp2/js/controllers.js b/examples/demos/toderp2/js/controllers.js
index 1453268be1..3eca85fa02 100644
--- a/examples/demos/toderp2/js/controllers.js
+++ b/examples/demos/toderp2/js/controllers.js
@@ -26,7 +26,7 @@ angular.module('ionic.todo.controllers', ['ionic.todo'])
$scope.loginForm = {
email: 'ihasmax@gmail.com',
- password: 'traintown'
+ password: ''
};
$scope.close = function() {
@@ -134,7 +134,7 @@ angular.module('ionic.todo.controllers', ['ionic.todo'])
$scope.selectProject = function(project) {
$scope.setActiveProject(project);
- $scope.sideMenuCtrl.close();
+ $scope.sideMenuController.close();
};
/**
@@ -162,7 +162,7 @@ angular.module('ionic.todo.controllers', ['ionic.todo'])
$scope.activeProject.title = newProject.title;
$scope.activeProject.user_id = newProject.user_id;
- $scope.sideMenuCtrl.close();
+ $scope.sideMenuController.close();
};
$scope.deleteProject = function(project) {
diff --git a/examples/starters/weather/directives.js b/examples/starters/weather/directives.js
index 19ad53a6ee..63f1732753 100644
--- a/examples/starters/weather/directives.js
+++ b/examples/starters/weather/directives.js
@@ -25,7 +25,11 @@ angular.module('ionic.weather.directives', [])
replace: true,
transclude: true,
template: '',
- link: function($scope, $element, $attr) {
+
+ compile: function(element, attr) {
+ console.log('SMALL COMPILED');
+ return function($scope, $element, $attr) {
+ console.log('SMALL LINKED');
// Delay so we are in the DOM and can calculate sizes
$timeout(function() {
@@ -38,6 +42,7 @@ angular.module('ionic.weather.directives', [])
angular.element(document.querySelector('.content')).css('-webkit-overflow-scrolling', 'touch');
}, 50);
});
+ }
}
}
})
diff --git a/examples/starters/weather/index.html b/examples/starters/weather/index.html
index 552b4265fa..606bee8081 100644
--- a/examples/starters/weather/index.html
+++ b/examples/starters/weather/index.html
@@ -9,10 +9,11 @@
-
-
-
-
+
+
+
+
+
@@ -20,6 +21,7 @@
+
diff --git a/js/ext/angular/src/directive/ionicHeader.js b/js/ext/angular/src/directive/ionicHeader.js
index ef72aa721f..d1cfc0c039 100644
--- a/js/ext/angular/src/directive/ionicHeader.js
+++ b/js/ext/angular/src/directive/ionicHeader.js
@@ -9,11 +9,26 @@ angular.module('ionic.ui.header', ['ngAnimate'])
restrict: 'E',
replace: true,
transclude: true,
- template: '',
+ template: '',
+
scope: {
+ leftButtons: '=',
+ rightButtons: '=',
+ title: '=',
type: '@',
- alignTitle: '@',
+ alignTitle: '@'
},
+
link: function($scope, $element, $attr) {
var hb = new ionic.views.HeaderBar({
el: $element[0],
@@ -24,6 +39,22 @@ angular.module('ionic.ui.header', ['ngAnimate'])
$scope.headerBarView = hb;
+ $scope.$watch('leftButtons', function(val) {
+ // Resize the title since the buttons have changed
+ hb.align();
+ });
+
+ $scope.$watch('rightButtons', function(val) {
+ // Resize the title since the buttons have changed
+ hb.align();
+ });
+
+ $scope.$watch('title', function(val) {
+ // Resize the title since the title has changed
+ console.log('Title changed');
+ hb.align();
+ });
+
$scope.$on('$destroy', function() {
//
});
diff --git a/js/ext/angular/src/directive/ionicSideMenu.js b/js/ext/angular/src/directive/ionicSideMenu.js
index 637dd86fc2..2c1a7b798f 100644
--- a/js/ext/angular/src/directive/ionicSideMenu.js
+++ b/js/ext/angular/src/directive/ionicSideMenu.js
@@ -33,7 +33,7 @@ angular.module('ionic.ui.sideMenu', ['ionic.service.gesture'])
$scope.sideMenuContentTranslateX = 0;
- $scope.sideMenuCtrl = this;
+ $scope.sideMenuController = this;
})
.directive('sideMenu', function() {
diff --git a/js/ext/angular/src/directive/ionicTabBar.js b/js/ext/angular/src/directive/ionicTabBar.js
index 1c45a71522..965c06c10d 100644
--- a/js/ext/angular/src/directive/ionicTabBar.js
+++ b/js/ext/angular/src/directive/ionicTabBar.js
@@ -152,7 +152,7 @@ angular.module('ionic.ui.tabs', ['ngAnimate'])
};
},
template:
- '' +
+ '' +
'' +
'' +
' {{title}}' +
diff --git a/js/ext/angular/src/ionicAngular.js b/js/ext/angular/src/ionicAngular.js
index 0a3f1360d3..b07fd098c7 100644
--- a/js/ext/angular/src/ionicAngular.js
+++ b/js/ext/angular/src/ionicAngular.js
@@ -27,4 +27,9 @@ angular.module('ionic.ui', [
angular.module('ionic', [
'ionic.service',
'ionic.ui',
+
+ // Angular deps
+ 'ngAnimate',
+ 'ngTouch',
+ 'ngSanitize'
]);
diff --git a/js/ext/angular/test/directive/ionicSideMenu.unit.js b/js/ext/angular/test/directive/ionicSideMenu.unit.js
index eb6894ed9b..21337f110b 100644
--- a/js/ext/angular/test/directive/ionicSideMenu.unit.js
+++ b/js/ext/angular/test/directive/ionicSideMenu.unit.js
@@ -13,6 +13,6 @@ describe('Ionic Angular Side Menu', function() {
it('Should init', function() {
var scope = el.scope();
- expect(scope.sideMenuCtrl).not.toBe(undefined);
+ expect(scope.sideMenuController).not.toBe(undefined);
});
});
diff --git a/js/ext/angular/test/header.html b/js/ext/angular/test/header.html
index 36b105b4ed..5f90530c6a 100644
--- a/js/ext/angular/test/header.html
+++ b/js/ext/angular/test/header.html
@@ -9,16 +9,34 @@
+
-
-
-
- A really really long title here here here here her
-
+
+
+
+
+
+
-
-
+
+
+
+
+
+
-
- Contacts
-
+
@@ -53,8 +54,6 @@
-
-
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/js/ext/angular/test/sideMenu.html b/js/ext/angular/test/sideMenu.html
index 4e9434fbbb..1f92eb1c30 100644
--- a/js/ext/angular/test/sideMenu.html
+++ b/js/ext/angular/test/sideMenu.html
@@ -63,7 +63,7 @@
});
}
$scope.openLeft = function() {
- $scope.sideMenuCtrl.toggleLeft();
+ $scope.sideMenuController.toggleLeft();
};
});
diff --git a/js/ext/angular/test/tabs.html b/js/ext/angular/test/tabs.html
index 1e726f0e24..39426f4735 100644
--- a/js/ext/angular/test/tabs.html
+++ b/js/ext/angular/test/tabs.html
@@ -51,11 +51,11 @@
-
-
-