diff --git a/ionic/components/action-sheet/action-sheet.ts b/ionic/components/action-sheet/action-sheet.ts index de365a83a6..4a838b0450 100644 --- a/ionic/components/action-sheet/action-sheet.ts +++ b/ionic/components/action-sheet/action-sheet.ts @@ -22,19 +22,19 @@ import {extend} from '../../util/util'; '
' + '
' + '
' + - '
{{d.titleText}}
' + - '' + - '' + '
' + - '
' + + '
' + '' + '
' + diff --git a/ionic/components/blur/blur.ts b/ionic/components/blur/blur.ts index a8e312d88a..6a58f4b1dd 100644 --- a/ionic/components/blur/blur.ts +++ b/ionic/components/blur/blur.ts @@ -8,7 +8,7 @@ import {Directive, Renderer, ElementRef} from 'angular2/core'; * @demo /docs/v2/demos/blur/ */ @Directive({ - selector: '[ion-blur]' + selector: '[blur]' }) export class Blur { constructor(private elementRef: ElementRef, private renderer: Renderer) { diff --git a/ionic/components/checkbox/checkbox.ts b/ionic/components/checkbox/checkbox.ts index 4b8307d4e1..d89323c3b3 100644 --- a/ionic/components/checkbox/checkbox.ts +++ b/ionic/components/checkbox/checkbox.ts @@ -14,7 +14,7 @@ import {Form} from '../../util/form'; * * @usage * ```html - * + * * HTML5 * * ``` diff --git a/ionic/components/checkbox/test/basic/e2e.ts b/ionic/components/checkbox/test/basic/e2e.ts index 38ebef5a81..713c06fa10 100644 --- a/ionic/components/checkbox/test/basic/e2e.ts +++ b/ionic/components/checkbox/test/basic/e2e.ts @@ -1,6 +1,6 @@ it('should check apple, enable/check grape, submit form', function() { - element(by.css('[ng-control=appleCtrl] .checkbox-media')).click(); + element(by.css('[ngControl=appleCtrl] .checkbox-media')).click(); element(by.css('.e2eGrapeDisabled')).click(); element(by.css('.e2eGrapeChecked')).click(); element(by.css('.e2eSubmit')).click(); diff --git a/ionic/components/checkbox/test/basic/main.html b/ionic/components/checkbox/test/basic/main.html index 775e4af06a..570ee0c08e 100644 --- a/ionic/components/checkbox/test/basic/main.html +++ b/ionic/components/checkbox/test/basic/main.html @@ -4,23 +4,23 @@ -
+ - + Apple, value=apple, init checked - + Banana, init no checked/value attributes - + Cherry, value=cherry, init disabled - + Grape, value=grape, init checked, disabled diff --git a/ionic/components/icon/icon.ts b/ionic/components/icon/icon.ts index 28a1abb5c4..d3a72487bd 100644 --- a/ionic/components/icon/icon.ts +++ b/ionic/components/icon/icon.ts @@ -9,7 +9,7 @@ import {Config} from '../../config/config'; * Icons can be used on their own, or inside of a number of Ionic components. For a full list of available icons, * check out the [Ionicons resource docs](../../../../../resources/ionicons). * - * @property {boolean} [is-active] - Whether or not the icon is active. Icons that are not active will use an outlined version of the icon. + * @property {boolean} [isActive] - Whether or not the icon is active. Icons that are not active will use an outlined version of the icon. * If there is not an outlined version for the particular icon, it will use the default (full) version. * @property {string} [ios] - Explicitly set the icon to use on iOS. * @property {string} [md] - Explicitly set the icon to use on Android. @@ -55,7 +55,7 @@ export class Icon { // looping through native dom attributes, eww // https://github.com/angular/angular/issues/1818 for (let i = 0, l = ele.attributes.length; i < l; i++) { - if (ele.attributes[i].value === '' && /_|item-|is-active|large|small|class/.test(ele.attributes[i].name) !== true) { + if (ele.attributes[i].value === '' && /_|item-|isActive|large|small|class/.test(ele.attributes[i].name) !== true) { this.name = ele.attributes[i].name; break; } diff --git a/ionic/components/icon/test/basic/main.html b/ionic/components/icon/test/basic/main.html index d674a97f18..370c8cf947 100644 --- a/ionic/components/icon/test/basic/main.html +++ b/ionic/components/icon/test/basic/main.html @@ -15,16 +15,16 @@ - + - <icon home is-active="true"></icon> + <icon home isActive="true"></icon> - + - <icon home is-active="false"></icon> + <icon home isActive="false"></icon> @@ -57,9 +57,9 @@ - + - <icon [is-active]="isActive" ios="ion-social-apple" md="ion-social-android"></icon> + <icon [isActive]="isActive" ios="ion-social-apple" md="ion-social-android"></icon> diff --git a/ionic/components/item/item-sliding.ts b/ionic/components/item/item-sliding.ts index d6688f6630..75642433c5 100644 --- a/ionic/components/item/item-sliding.ts +++ b/ionic/components/item/item-sliding.ts @@ -11,7 +11,7 @@ import {List} from '../list/list'; * @usage * ```html * - * + * * * {{item.title}} * diff --git a/ionic/components/item/test/groups/session-list.html b/ionic/components/item/test/groups/session-list.html index f32ba3a922..c565ca8bf1 100644 --- a/ionic/components/item/test/groups/session-list.html +++ b/ionic/components/item/test/groups/session-list.html @@ -8,13 +8,13 @@ - + {{timeSlot.time}} - + - @@ -32,11 +32,11 @@ - - diff --git a/ionic/components/menu/test/basic/page1.html b/ionic/components/menu/test/basic/page1.html index f8f5b40f8a..4f83c16b60 100644 --- a/ionic/components/menu/test/basic/page1.html +++ b/ionic/components/menu/test/basic/page1.html @@ -1,7 +1,7 @@ - @@ -21,7 +21,7 @@ - @@ -33,11 +33,11 @@

Page 1

- +

- +

diff --git a/ionic/components/menu/test/basic/page2.html b/ionic/components/menu/test/basic/page2.html index 66415e066b..95d2059180 100644 --- a/ionic/components/menu/test/basic/page2.html +++ b/ionic/components/menu/test/basic/page2.html @@ -1,7 +1,7 @@ - @@ -16,7 +16,7 @@

Page 2

- +

diff --git a/ionic/components/menu/test/basic/page3.html b/ionic/components/menu/test/basic/page3.html index cfcda473c2..d243f7b761 100644 --- a/ionic/components/menu/test/basic/page3.html +++ b/ionic/components/menu/test/basic/page3.html @@ -5,7 +5,7 @@ Menu - @@ -17,7 +17,7 @@

Page 3

- +

diff --git a/ionic/components/menu/test/multiple/main.html b/ionic/components/menu/test/multiple/main.html index 07beb0315e..60cc884048 100644 --- a/ionic/components/menu/test/multiple/main.html +++ b/ionic/components/menu/test/multiple/main.html @@ -7,7 +7,7 @@ - @@ -24,7 +24,7 @@ - diff --git a/ionic/components/menu/test/multiple/page1.html b/ionic/components/menu/test/multiple/page1.html index d6cb252a13..c81521a0af 100644 --- a/ionic/components/menu/test/multiple/page1.html +++ b/ionic/components/menu/test/multiple/page1.html @@ -1,6 +1,6 @@ - @@ -22,7 +22,7 @@

- +

This page has two left menus, but only one is active at a time.

diff --git a/ionic/components/menu/test/overlay/main.html b/ionic/components/menu/test/overlay/main.html index c63832c9dd..5c25565b6b 100644 --- a/ionic/components/menu/test/overlay/main.html +++ b/ionic/components/menu/test/overlay/main.html @@ -8,7 +8,7 @@ - @@ -18,24 +18,4 @@ - - - diff --git a/ionic/components/menu/test/overlay/page1.html b/ionic/components/menu/test/overlay/page1.html index 99eb7dacf7..e2970ea621 100644 --- a/ionic/components/menu/test/overlay/page1.html +++ b/ionic/components/menu/test/overlay/page1.html @@ -1,7 +1,7 @@ - @@ -17,11 +17,11 @@

Content

- +

- +

diff --git a/ionic/components/menu/test/push/main.html b/ionic/components/menu/test/push/main.html index 9cfcdf9387..82f96ae76e 100644 --- a/ionic/components/menu/test/push/main.html +++ b/ionic/components/menu/test/push/main.html @@ -8,7 +8,7 @@ - @@ -18,24 +18,4 @@ - - - diff --git a/ionic/components/menu/test/push/page1.html b/ionic/components/menu/test/push/page1.html index cbac02c561..7ffd124cb4 100644 --- a/ionic/components/menu/test/push/page1.html +++ b/ionic/components/menu/test/push/page1.html @@ -1,7 +1,7 @@ - @@ -17,11 +17,11 @@

Content

- +

- +

diff --git a/ionic/components/menu/test/reveal/main.html b/ionic/components/menu/test/reveal/main.html index 3d90be8de0..bb6faf5e81 100644 --- a/ionic/components/menu/test/reveal/main.html +++ b/ionic/components/menu/test/reveal/main.html @@ -8,7 +8,7 @@ - @@ -18,24 +18,4 @@ - - - diff --git a/ionic/components/menu/test/reveal/page1.html b/ionic/components/menu/test/reveal/page1.html index fb6bab465a..547a5035ca 100644 --- a/ionic/components/menu/test/reveal/page1.html +++ b/ionic/components/menu/test/reveal/page1.html @@ -1,7 +1,7 @@ - @@ -17,11 +17,11 @@

Content

- +

- +

diff --git a/ionic/components/nav/nav-push.ts b/ionic/components/nav/nav-push.ts index b0e697d33c..d295064c9c 100644 --- a/ionic/components/nav/nav-push.ts +++ b/ionic/components/nav/nav-push.ts @@ -8,11 +8,11 @@ import {NavRegistry} from './nav-registry'; * * Basic usage: * ```html - * + * * ``` * To specify parameters you can use array syntax or the `nav-params` property: * ```html - * + * * ``` * Where `pushPage` and `params` are specified in your component, and `pushPage` * contains a reference to a [@Page component](../../../config/Page/): @@ -20,7 +20,7 @@ import {NavRegistry} from './nav-registry'; * ```ts * import {LoginPage} from 'login'; * @Page({ - * template: `` + * template: `` * }) * class MyPage { * constructor(){ @@ -34,14 +34,14 @@ import {NavRegistry} from './nav-registry'; * You can also use syntax similar to Angular2's router, passing an array to * NavPush: * ```html - * + * * ``` * @demo /docs/v2/demos/nav-push-pop/ * @see {@link /docs/v2/components#navigation Navigation Component Docs} * @see {@link ../NavPop NavPop API Docs} */ @Directive({ - selector: '[nav-push]', + selector: '[navPush]', inputs: [ 'instruction: navPush', 'params: navParams' @@ -69,7 +69,7 @@ export class NavPush { if (this.instruction instanceof Array) { if (this.instruction.length > 2) { - throw 'Too many [nav-push] arguments, expects [View, { params }]' + throw 'Too many [navPush] arguments, expects [View, { params }]' } destination = this.instruction[0]; params = this.instruction[1] || this.params; diff --git a/ionic/components/nav/nav.ts b/ionic/components/nav/nav.ts index 510e697a08..51a4996435 100644 --- a/ionic/components/nav/nav.ts +++ b/ionic/components/nav/nav.ts @@ -103,9 +103,9 @@ import {ViewController} from './view-controller'; inputs: [ 'root' ], - defaultInputs: { - 'swipeBackEnabled': true - }, + // defaultInputs: { + // 'swipeBackEnabled': true + // }, template: '' }) export class Nav extends NavController { diff --git a/ionic/components/nav/test/basic/index.ts b/ionic/components/nav/test/basic/index.ts index ad60028ea3..30c88d4c27 100644 --- a/ionic/components/nav/test/basic/index.ts +++ b/ionic/components/nav/test/basic/index.ts @@ -32,16 +32,16 @@ class MyCmpTest{} - - - - + + + + - +
`, @@ -195,17 +195,17 @@ class PrimaryHeaderPage { @Page({ template: ` - + Another Page Header -

Back button hidden w/ ion-navbar hide-back-button

+

Back button hidden w/ ion-navbar hideBackButton

-

+

` diff --git a/ionic/components/nav/test/nested/index.ts b/ionic/components/nav/test/nested/index.ts index 935897f4b2..2a0fdc885e 100644 --- a/ionic/components/nav/test/nested/index.ts +++ b/ionic/components/nav/test/nested/index.ts @@ -75,7 +75,7 @@ export class Account { @Page({ template: ` - Account Dashboard @@ -106,7 +106,7 @@ export class Dashboard { @Page({ template: ` - Account Profile diff --git a/ionic/components/nav/test/routing/view1.html b/ionic/components/nav/test/routing/view1.html index 39789c8de6..f6f36fec09 100644 --- a/ionic/components/nav/test/routing/view1.html +++ b/ionic/components/nav/test/routing/view1.html @@ -1,6 +1,6 @@ - First View diff --git a/ionic/components/navbar/navbar.ts b/ionic/components/navbar/navbar.ts index e1db15b35b..bf34e2449d 100644 --- a/ionic/components/navbar/navbar.ts +++ b/ionic/components/navbar/navbar.ts @@ -71,7 +71,7 @@ class ToolbarBackground { '{{bbText}}' + '' + '' + - '' + + '' + '' + '' + '
' + diff --git a/ionic/components/popup/popup.ts b/ionic/components/popup/popup.ts index c5b37547fe..18445fcdf2 100644 --- a/ionic/components/popup/popup.ts +++ b/ionic/components/popup/popup.ts @@ -274,15 +274,15 @@ const OVERLAY_TYPE = 'popup'; '
' + ' - - + + Currencies - {{currency}} + {{currency}} @@ -56,7 +56,7 @@ currenciesControl.value: {{currencyForm.controls.currenciesControl.value}}
- + Friends Enemies diff --git a/ionic/components/scroll/pull-to-refresh.ts b/ionic/components/scroll/pull-to-refresh.ts index bb5816234b..753dfc4d2d 100644 --- a/ionic/components/scroll/pull-to-refresh.ts +++ b/ionic/components/scroll/pull-to-refresh.ts @@ -55,13 +55,13 @@ import {raf, ready, CSS} from '../../util/dom'; template: '
' + '
' + - '' + + '' + '
' + - '
' + + '
' + '
' + - '' + + '' + '
' + - '
' + + '
' + '
', directives: [NgIf, NgClass] }) diff --git a/ionic/components/searchbar/searchbar.ts b/ionic/components/searchbar/searchbar.ts index b73c28985a..6bfdfb495e 100644 --- a/ionic/components/searchbar/searchbar.ts +++ b/ionic/components/searchbar/searchbar.ts @@ -15,13 +15,13 @@ import {Button} from '../button/button'; * * @usage * ```html - * + * * ``` * * @property [placeholder] - sets input placeholder to value passed in - * @property [show-cancel] - shows the cancel button based on boolean value passed in - * @property [cancel-text] - sets the cancel button text to the value passed in - * @property [cancel-action] - the function that gets called by clicking the cancel button + * @property [showCancel] - shows the cancel button based on boolean value passed in + * @property [cancelText] - sets the cancel button text to the value passed in + * @property [cancelAction] - the function that gets called by clicking the cancel button * @see {@link /docs/v2/components#search Search Component Docs} */ @ConfigComponent({ @@ -42,9 +42,9 @@ import {Button} from '../button/button'; '
' + '' + - '' + + '' + '
' + - '', + '', directives: [FORM_DIRECTIVES, NgIf, NgClass, Icon, Button] }) export class Searchbar extends Ion { diff --git a/ionic/components/searchbar/test/basic/index.ts b/ionic/components/searchbar/test/basic/index.ts deleted file mode 100644 index 90974c444e..0000000000 --- a/ionic/components/searchbar/test/basic/index.ts +++ /dev/null @@ -1,47 +0,0 @@ -import {NgControl, FORM_DIRECTIVES, FormBuilder, Validators, Control, ControlGroup} from 'angular2/common'; - -import {App} from 'ionic/ionic'; -import {SearchPipe} from 'ionic/components/searchbar/searchbar'; - - -function randomTitle() { - var items = ['Soylent', 'Pizza', 'Pumpkin', 'Apple', 'Bologna', 'Turkey', 'Kabob', 'Salad', 'Fruit bowl', 'Fish Tacos', 'Chimichongas', 'Meatloaf']; - return items[Math.floor(Math.random() * items.length)]; -} - -@App({ - templateUrl: 'main.html', - providers: [NgControl], - directives: [FORM_DIRECTIVES] -}) -class E2EApp { - constructor() { - var fb = new FormBuilder(); - this.searchQuery = ''; - - this.items = [] - for(let i = 0; i < 100; i++) { - this.items.push({ - title: randomTitle() - }) - } - } - - doThis() { - console.log('Doing this'); - } - - getItems() { - var q = this.searchQuery; - console.log('Its changing'); - if(q.trim() == '') { - return this.items; - } - return this.items.filter((v) => { - if(v.title.toLowerCase().indexOf(q.toLowerCase()) >= 0) { - return true; - } - return false; - }) - } -} diff --git a/ionic/components/searchbar/test/basic/main.html b/ionic/components/searchbar/test/basic/main.html deleted file mode 100644 index eccbaa96bf..0000000000 --- a/ionic/components/searchbar/test/basic/main.html +++ /dev/null @@ -1,16 +0,0 @@ - - - - - - - - - - {{item.title}} - - - - - - diff --git a/ionic/components/searchbar/test/floating/main.html b/ionic/components/searchbar/test/floating/main.html index ad7b9c4be8..bee7f6722b 100644 --- a/ionic/components/searchbar/test/floating/main.html +++ b/ionic/components/searchbar/test/floating/main.html @@ -1,20 +1,20 @@
Search - Default
- +
Search - Custom Placeholder
- +
Search - Default Cancel Button
- +
Search - Custom Cancel Button Danger
- +
Search - Custom Cancel Action
- + -
+
Clicked custom action with input = {{customCancelAction}}
diff --git a/ionic/components/searchbar/test/model/main.html b/ionic/components/searchbar/test/model/main.html index cb97ef4658..275be607c9 100644 --- a/ionic/components/searchbar/test/model/main.html +++ b/ionic/components/searchbar/test/model/main.html @@ -2,11 +2,11 @@ - + - + - + {{item.title}} diff --git a/ionic/components/searchbar/test/toolbar/main.html b/ionic/components/searchbar/test/toolbar/main.html index b50f292116..fd431d1e16 100644 --- a/ionic/components/searchbar/test/toolbar/main.html +++ b/ionic/components/searchbar/test/toolbar/main.html @@ -5,22 +5,22 @@
Search - Default Toolbar
- +
Search - Primary Toolbar
- +
Search - Danger Toolbar
- +
Search - Light Toolbar
- +
diff --git a/ionic/components/segment/segment.ts b/ionic/components/segment/segment.ts index 122b045198..cb4399edf2 100644 --- a/ionic/components/segment/segment.ts +++ b/ionic/components/segment/segment.ts @@ -10,12 +10,12 @@ import {Config} from '../../config/config'; * @description * A Segment is a group of buttons, sometimes known as Segmented Controls, that allow the user to interact with a compact group of a number of controls. * Segments provide functionality similar to tabs, selecting one will unselect all others. You should use a tab bar instead of a segmented control when you want to let the user move back and forth between distinct pages in your app. - * You could use Angular 2's `ng-model` or `FormBuilder` API. For an overview on how `FormBuilder` works, checkout [Angular 2 Forms](http://learnangular2.com/forms/), or [Angular FormBuilder](https://angular.io/docs/ts/latest/api/common/FormBuilder-class.html) + * You could use Angular 2's `ngModel` or `FormBuilder` API. For an overview on how `FormBuilder` works, checkout [Angular 2 Forms](http://learnangular2.com/forms/), or [Angular FormBuilder](https://angular.io/docs/ts/latest/api/common/FormBuilder-class.html) * * * @usage * ```html - * + * * * Friends * @@ -28,8 +28,8 @@ import {Config} from '../../config/config'; * Or with `FormBuilder` * *```html - *
- * + * + * * * Standard * @@ -142,7 +142,7 @@ export class Segment extends Ion { * @property {string} [value] - the value of the segment-button. * @usage * ```html - * + * * * Friends * @@ -155,8 +155,8 @@ export class Segment extends Ion { * Or with `FormBuilder` * *```html - * - * + * + * * * Standard * diff --git a/ionic/components/segment/test/basic/main.html b/ionic/components/segment/test/basic/main.html index 6e6af81ecb..3af229fe21 100644 --- a/ionic/components/segment/test/basic/main.html +++ b/ionic/components/segment/test/basic/main.html @@ -1,5 +1,5 @@ - + Friends @@ -30,8 +30,8 @@

Map mode: NgControl

- - + + Standard @@ -47,14 +47,14 @@

Map mode: {{myForm.controls.mapStyle.value}} - - - + + Standard - + Hybrid - + Satellite @@ -64,7 +64,7 @@

Model style: NgModel

- + Model A @@ -83,7 +83,7 @@ - + Primary @@ -97,7 +97,7 @@ - + Light @@ -111,7 +111,7 @@ - + Light diff --git a/ionic/components/segment/test/nav/main.html b/ionic/components/segment/test/nav/main.html index db14d34dae..8d94a1db3a 100644 --- a/ionic/components/segment/test/nav/main.html +++ b/ionic/components/segment/test/nav/main.html @@ -5,7 +5,7 @@ - + New @@ -32,14 +32,14 @@ -
-
+
+
Signing up as an Existing User.
-
+
Signing up as a New User.
-
+
Signing up as a Test User.
diff --git a/ionic/components/show-hide-when/show-hide-when.ts b/ionic/components/show-hide-when/show-hide-when.ts index f8c633d3ab..1a751cde03 100644 --- a/ionic/components/show-hide-when/show-hide-when.ts +++ b/ionic/components/show-hide-when/show-hide-when.ts @@ -3,7 +3,10 @@ import {Directive, Attribute, NgZone} from 'angular2/core' import {Platform} from '../../platform/platform'; -export class DisplayWhen { +/** + * @private + */ +class DisplayWhen { constructor(conditions, platform, ngZone) { this.isMatch = false; @@ -58,13 +61,13 @@ export class DisplayWhen { * Complements the [hide-when attribute](../HideWhen). * @usage * ```html - *
I am only visible on iOS!
+ *
I am only visible on iOS!
* ``` * @demo /docs/v2/demos/show-when/ * @see {@link ../HideWhen HideWhen API Docs} */ @Directive({ - selector: '[show-when]', + selector: '[showWhen]', host: { '[hidden]': 'hidden' } @@ -72,7 +75,7 @@ export class DisplayWhen { export class ShowWhen extends DisplayWhen { constructor( - @Attribute('show-when') showWhen: string, + @Attribute('showWhen') showWhen: string, platform: Platform, ngZone: NgZone ) { @@ -95,13 +98,13 @@ export class ShowWhen extends DisplayWhen { * Complements the [show-when attribute](../ShowWhen). * @usage * ```html - *
I am hidden on Android!
+ *
I am hidden on Android!
* ``` * @demo /docs/v2/demos/hide-when/ * @see {@link ../ShowWhen ShowWhen API Docs} */ @Directive({ - selector: '[hide-when]', + selector: '[hideWhen]', host: { '[hidden]': 'hidden' } @@ -109,7 +112,7 @@ export class ShowWhen extends DisplayWhen { export class HideWhen extends DisplayWhen { constructor( - @Attribute('hide-when') hideWhen: string, + @Attribute('hideWhen') hideWhen: string, platform: Platform, ngZone: NgZone ) { diff --git a/ionic/components/show-hide-when/test/basic/main.html b/ionic/components/show-hide-when/test/basic/main.html index 1d2105148a..d4c5b39349 100644 --- a/ionic/components/show-hide-when/test/basic/main.html +++ b/ionic/components/show-hide-when/test/basic/main.html @@ -4,56 +4,56 @@ -

- show-when="ios" +

+ showWhen="ios"

-

- show-when="android" +

+ showWhen="android"

-

- show-when="android,ios" +

+ showWhen="android,ios"

-

- show-when="core" +

+ showWhen="core"

-

- show-when="mobile" +

+ showWhen="mobile"

-

- show-when="phablet" +

+ showWhen="phablet"

-

- show-when="tablet" +

+ showWhen="tablet"

-

- show-when="iphone" +

+ showWhen="iphone"

-

- show-when="landscape" +

+ showWhen="landscape"

-

- show-when="portrait" +

+ showWhen="portrait"

-

- hide-when="ios" +

+ hideWhen="ios"

-

- hide-when="android" +

+ hideWhen="android"

-

- hide-when="android,ios" +

+ hideWhen="android,ios"

diff --git a/ionic/components/slides/slides.ts b/ionic/components/slides/slides.ts index 2fa2d72d70..c69296464d 100644 --- a/ionic/components/slides/slides.ts +++ b/ionic/components/slides/slides.ts @@ -34,7 +34,7 @@ import {Scroll} from '../scroll/scroll'; * ```ts * @Page({ * template: ` - * + * * *

Thank you for choosing the Awesome App!

*

diff --git a/ionic/components/slides/test/basic/main.html b/ionic/components/slides/test/basic/main.html index d93835abfe..e9cad308ac 100644 --- a/ionic/components/slides/test/basic/main.html +++ b/ionic/components/slides/test/basic/main.html @@ -1,5 +1,5 @@ - + diff --git a/ionic/components/slides/test/intro/main.html b/ionic/components/slides/test/intro/main.html index 00caad1bb2..53baf00e2c 100644 --- a/ionic/components/slides/test/intro/main.html +++ b/ionic/components/slides/test/intro/main.html @@ -42,7 +42,7 @@ Grid Icons - +

Thank you for choosing the Awesome App!

- diff --git a/ionic/components/tabs/tab.ts b/ionic/components/tabs/tab.ts index 2ae8f7b364..aa56dbbd91 100644 --- a/ionic/components/tabs/tab.ts +++ b/ionic/components/tabs/tab.ts @@ -13,8 +13,8 @@ import {Tabs} from './tabs'; * @usage * ```html * - * - * + * + * * * ``` * @@ -34,8 +34,8 @@ import {Tabs} from './tabs'; * * @property {any} [root] - set the root page for this tab - * @property {any} [tab-title] - set the title of this tab - * @property {any} [tab-icon] - set the icon for this tab + * @property {any} [tabTitle] - set the title of this tab + * @property {any} [tabIcon] - set the icon for this tab */ @Component({ diff --git a/ionic/components/tabs/tabs.ios.scss b/ionic/components/tabs/tabs.ios.scss index 968f8db08c..a33c7c636b 100644 --- a/ionic/components/tabs/tabs.ios.scss +++ b/ionic/components/tabs/tabs.ios.scss @@ -21,7 +21,7 @@ tabbar { background: $tabbar-ios-background; } -ion-tabs[tabbar-placement=top] tabbar { +ion-tabs[tabbarPlacement=top] tabbar { border-top: none; border-bottom: 1px solid $toolbar-ios-border-color; } @@ -60,8 +60,8 @@ ion-tabs[tabbar-placement=top] tabbar { } } -[tabbar-icons=right] .tab-button, -[tabbar-icons=left] .tab-button { +[tabbarIcons=right] .tab-button, +[tabbarIcons=left] .tab-button { .tab-button-text { font-size: 1.4rem; @@ -77,7 +77,7 @@ ion-tabs[tabbar-placement=top] tabbar { } } -[tabbar-icons=hide] .tab-button-text { +[tabbarIcons=hide] .tab-button-text { font-size: 1.4rem; line-height: 1.1; } @@ -101,7 +101,7 @@ ion-tabs[tabbar-placement=top] tabbar { border-top-width: 0.55px; } - &[tabbar-placement="top"] tabbar { + &[tabbarPlacement="top"] tabbar { border-bottom-width: 0.55px; } diff --git a/ionic/components/tabs/tabs.md.scss b/ionic/components/tabs/tabs.md.scss index 3273111a2e..5fe0766c7d 100644 --- a/ionic/components/tabs/tabs.md.scss +++ b/ionic/components/tabs/tabs.md.scss @@ -49,13 +49,13 @@ tabbar { min-width: $tabbar-md-item-icon-size + 5; } -[tabbar-icons=bottom] .tab-button { +[tabbarIcons=bottom] .tab-button { padding-top: 8px; padding-bottom: 8px; } -[tabbar-icons=right] .tab-button, -[tabbar-icons=left] .tab-button { +[tabbarIcons=right] .tab-button, +[tabbarIcons=left] .tab-button { padding-bottom: 10px; icon { @@ -84,7 +84,7 @@ tab-highlight { } } -[tabbar-placement=bottom] tab-highlight { +[tabbarPlacement=bottom] tab-highlight { top: 0; } diff --git a/ionic/components/tabs/tabs.scss b/ionic/components/tabs/tabs.scss index 4da71363b6..2da72784a4 100644 --- a/ionic/components/tabs/tabs.scss +++ b/ionic/components/tabs/tabs.scss @@ -43,7 +43,7 @@ ion-tabbar-section { order: $flex-order-tabbar-bottom; } -[tabbar-placement=top] ion-tabbar-section { +[tabbarPlacement=top] ion-tabbar-section { order: $flex-order-tabbar-top; } @@ -108,13 +108,13 @@ tab-highlight { display: none; } -[tabbar-icons=bottom] .tab-button { +[tabbarIcons=bottom] .tab-button { .tab-button-icon { order: 10; } } -[tabbar-icons=left] .tab-button { +[tabbarIcons=left] .tab-button { flex-direction: row; .tab-button-icon { @@ -123,7 +123,7 @@ tab-highlight { } } -[tabbar-icons=right] .tab-button { +[tabbarIcons=right] .tab-button { flex-direction: row; .tab-button-icon { @@ -133,6 +133,6 @@ tab-highlight { } } -[tabbar-icons=hide] .tab-button-icon { +[tabbarIcons=hide] .tab-button-icon { display: none; } diff --git a/ionic/components/tabs/tabs.ts b/ionic/components/tabs/tabs.ts index 8ef6c6716f..c30838214f 100644 --- a/ionic/components/tabs/tabs.ts +++ b/ionic/components/tabs/tabs.ts @@ -14,10 +14,10 @@ import {rafFrames} from '../../util/dom'; /** * @name Tabs - * @property {any} [tabbar-placement] - set position of the tabbar, top or bottom - * @property {any} [tabbar-icons] - set the position of the tabbar's icons: top, bottom, left, right, hide + * @property {any} [tabbarPlacement] - set position of the tabbar, top or bottom + * @property {any} [tabbarIcons] - set the position of the tabbar's icons: top, bottom, left, right, hide * @property {any} [tabbar-style] - sets tabbar's style (primary, secondary, etc) - * @property {any} [preload-tabs] - sets whether to preload all the tabs, true or false + * @property {any} [preloadTabs] - sets whether to preload all the tabs, true or false * @usage * ```html * @@ -48,8 +48,8 @@ import {rafFrames} from '../../util/dom'; '' + '' + '' + - '
' + - '' + + '' + + '' + '{{t.tabTitle}}' + '' + '' + diff --git a/ionic/components/tabs/test/advanced/tabs.html b/ionic/components/tabs/test/advanced/tabs.html index 9a686c91c9..60675d722b 100644 --- a/ionic/components/tabs/test/advanced/tabs.html +++ b/ionic/components/tabs/test/advanced/tabs.html @@ -1,6 +1,6 @@ - - - - + + + + diff --git a/ionic/components/tabs/test/basic/index.ts b/ionic/components/tabs/test/basic/index.ts index 6648d682c1..bf296a3ac4 100644 --- a/ionic/components/tabs/test/basic/index.ts +++ b/ionic/components/tabs/test/basic/index.ts @@ -13,7 +13,7 @@ Tab 1 - Item {{i}} {{i}} {{i}} {{i}} + Item {{i}} {{i}} {{i}} {{i}} ` @@ -39,7 +39,7 @@ class Tab1 { - +

{{session.name}} {{session.name}} {{session.name}}

{{session.location}} {{session.location}} {{session.location}}

@@ -71,7 +71,7 @@ class Tab2 { @Page({ template: ` - Stopwatch @@ -92,7 +92,7 @@ class Tab3 {} - @@ -100,9 +100,9 @@ class Tab3 {} - - - + + + ` }) diff --git a/ionic/components/tabs/test/ghost/index.ts b/ionic/components/tabs/test/ghost/index.ts index a4816bb487..d71b3cf5db 100644 --- a/ionic/components/tabs/test/ghost/index.ts +++ b/ionic/components/tabs/test/ghost/index.ts @@ -46,7 +46,7 @@ class Tab2 { @Page({ template: ` - Stopwatch @@ -68,7 +68,7 @@ class Tab3 { @Page({ template: ` - Quesarito @@ -92,7 +92,7 @@ class QuesaritoPage { - @@ -100,9 +100,9 @@ class QuesaritoPage { - - - + + + ` }) diff --git a/ionic/components/tabs/test/tab-bar-scenarios/main.html b/ionic/components/tabs/test/tab-bar-scenarios/main.html index 222687e048..3414bd47a7 100644 --- a/ionic/components/tabs/test/tab-bar-scenarios/main.html +++ b/ionic/components/tabs/test/tab-bar-scenarios/main.html @@ -1,69 +1,69 @@ - - - + + + - - - + + + - - - + + + - - - - + + + + - - - - + + + + - - - - + + + + - - - - + + + + - - - + + + - - - + + + diff --git a/ionic/components/text-input/test/floating-labels/main.html b/ionic/components/text-input/test/floating-labels/main.html index 24e6be3c58..93fe74fe49 100644 --- a/ionic/components/text-input/test/floating-labels/main.html +++ b/ionic/components/text-input/test/floating-labels/main.html @@ -8,7 +8,7 @@ Floating Label 1 - + Value: {{ myValues.value1 }} @@ -24,7 +24,7 @@ Floating Label 4 - + Value: {{ myValues.value2 }} diff --git a/ionic/components/text-input/test/form-inputs/main.html b/ionic/components/text-input/test/form-inputs/main.html index 545ed7758b..73cf6f005b 100644 --- a/ionic/components/text-input/test/form-inputs/main.html +++ b/ionic/components/text-input/test/form-inputs/main.html @@ -4,12 +4,12 @@ - + Email: - + @@ -17,7 +17,7 @@ Username: - + @@ -25,7 +25,7 @@ Password: - + @@ -33,7 +33,7 @@ Comments: - + diff --git a/ionic/components/text-input/text-input.ts b/ionic/components/text-input/text-input.ts index c2500f0608..dffe2ff1f3 100644 --- a/ionic/components/text-input/text-input.ts +++ b/ionic/components/text-input/text-input.ts @@ -60,7 +60,7 @@ import {Platform} from '../../platform/platform'; template: '
' + '' + - '' + + '' + '
', directives: [NgIf, forwardRef(() => InputScrollAssist)] }) diff --git a/ionic/components/toggle/test/basic/e2e.ts b/ionic/components/toggle/test/basic/e2e.ts index ad46dc3984..efb5b33089 100644 --- a/ionic/components/toggle/test/basic/e2e.ts +++ b/ionic/components/toggle/test/basic/e2e.ts @@ -1,6 +1,6 @@ it('should check apple via switch element click', function() { - element(by.css('[ng-control=appleCtrl] .toggle-media')).click(); + element(by.css('[ngControl=appleCtrl] .toggle-media')).click(); }); diff --git a/ionic/components/toggle/test/basic/main.html b/ionic/components/toggle/test/basic/main.html index 6f8bc74bd9..569215b24e 100644 --- a/ionic/components/toggle/test/basic/main.html +++ b/ionic/components/toggle/test/basic/main.html @@ -4,23 +4,23 @@ - + - + Apple, value=apple, init checked - + Banana, init no checked/value attributes - + Cherry, value=cherry, init disabled - + Grape, value=grape, init checked, disabled @@ -28,7 +28,7 @@ Secondary color - + I'm an NgModel diff --git a/ionic/components/toolbar/test/scenarios/main.html b/ionic/components/toolbar/test/scenarios/main.html index 7b6d6dba75..b4bbfd3482 100644 --- a/ionic/components/toolbar/test/scenarios/main.html +++ b/ionic/components/toolbar/test/scenarios/main.html @@ -136,7 +136,7 @@ - @@ -155,7 +155,7 @@ Right side menu toggle - diff --git a/ionic/components/toolbar/toolbar-button.scss b/ionic/components/toolbar/toolbar-button.scss index 44e52df3c0..fd997aa3ae 100644 --- a/ionic/components/toolbar/toolbar-button.scss +++ b/ionic/components/toolbar/toolbar-button.scss @@ -33,7 +33,7 @@ // Menu Toggle // -------------------------------------------------- -.bar-button-menu-toggle { +.bar-button-menutoggle { display: flex; align-items: center; } diff --git a/ionic/components/toolbar/toolbar.ios.scss b/ionic/components/toolbar/toolbar.ios.scss index aeb02bad95..211a728ce1 100644 --- a/ionic/components/toolbar/toolbar.ios.scss +++ b/ionic/components/toolbar/toolbar.ios.scss @@ -274,7 +274,7 @@ ion-buttons[right] { // iOS Toolbar Menu Toggle // -------------------------------------------------- -.bar-button-menu-toggle { +.bar-button-menutoggle { margin: 0 6px; padding: 0; min-width: 36px; @@ -286,8 +286,8 @@ ion-buttons[right] { } } -.bar-button-menu-toggle[end], -.bar-button-menu-toggle[right] { +.bar-button-menutoggle[end], +.bar-button-menutoggle[right] { order: map-get($toolbar-order-ios, menu-toggle-end); } diff --git a/ionic/components/toolbar/toolbar.md.scss b/ionic/components/toolbar/toolbar.md.scss index 311c62ad7c..514da92804 100644 --- a/ionic/components/toolbar/toolbar.md.scss +++ b/ionic/components/toolbar/toolbar.md.scss @@ -262,7 +262,7 @@ ion-buttons[right] { // Material Design Toolbar Menu Toggle // -------------------------------------------------- -.bar-button-menu-toggle { +.bar-button-menutoggle { margin: 0 6px; padding: 0 2px; min-width: 44px; @@ -274,8 +274,8 @@ ion-buttons[right] { } } -.bar-button-menu-toggle[end], -.bar-button-menu-toggle[right] { +.bar-button-menutoggle[end], +.bar-button-menutoggle[right] { margin: 0 2px; min-width: 28px; order: map-get($toolbar-order-md, menu-toggle-end); diff --git a/ionic/components/toolbar/toolbar.scss b/ionic/components/toolbar/toolbar.scss index 58b3a517b3..b34f09c22a 100644 --- a/ionic/components/toolbar/toolbar.scss +++ b/ionic/components/toolbar/toolbar.scss @@ -65,7 +65,7 @@ ion-buttons div { // TODO this is a temp hack to fix segment overlapping ion-nav-item ion-buttons, -.bar-button-menu-toggle { +.bar-button-menutoggle { z-index: 99; } diff --git a/ionic/components/toolbar/toolbar.ts b/ionic/components/toolbar/toolbar.ts index 4f59f7d9f8..490987bf98 100644 --- a/ionic/components/toolbar/toolbar.ts +++ b/ionic/components/toolbar/toolbar.ts @@ -79,7 +79,7 @@ export class ToolbarBase extends Ion { selector: 'ion-toolbar', template: '
' + - '' + + '' + '' + '' + '
' + @@ -149,7 +149,7 @@ export class ToolbarTitle extends Ion { * @private */ @Directive({ - selector: 'ion-buttons,[menu-toggle],ion-nav-items' + selector: 'ion-buttons,[menuToggle],ion-nav-items' }) export class ToolbarItem { constructor( diff --git a/ionic/config/config.ts b/ionic/config/config.ts index 2d77e36014..1fab9f7e48 100644 --- a/ionic/config/config.ts +++ b/ionic/config/config.ts @@ -44,8 +44,8 @@ import {isObject, isDefined, isFunction, isArray, extend} from '../util/util'; * We could also configure these values at a component level. Take `tabbarPlacement`, we can configure this as a property on our `ion-tabs`. * * ```html - * - * + * + * * * ``` * diff --git a/package.json b/package.json index 790ef7ee21..7ebce1251d 100644 --- a/package.json +++ b/package.json @@ -20,7 +20,7 @@ "tooling" ], "dependencies": { - "angular2": "2.0.0-alpha.50", + "angular2": "2.0.0-alpha.52", "colors": "^1.1.2", "es6-promise": "^3.0.2", "es6-shim": "0.33.6",