Loop {{ slide.name }}
@@ -8,7 +8,7 @@
-
+
Don't Loop {{ slide.name }}
diff --git a/src/components/tabs/tab-button.ts b/src/components/tabs/tab-button.ts
index 5c44f9a389..2d91a4c8b0 100644
--- a/src/components/tabs/tab-button.ts
+++ b/src/components/tabs/tab-button.ts
@@ -32,7 +32,7 @@ export class TabButton extends Ion {
private _layout: string;
@Input() tab: Tab;
- @Output() select: EventEmitter = new EventEmitter();
+ @Output() ionSelect: EventEmitter = new EventEmitter();
constructor(config: Config, elementRef: ElementRef) {
super(elementRef);
@@ -53,6 +53,6 @@ export class TabButton extends Ion {
@HostListener('click')
private onClick() {
- this.select.emit(this.tab);
+ this.ionSelect.emit(this.tab);
}
}
diff --git a/src/components/tabs/tab.ts b/src/components/tabs/tab.ts
index 58b32f0f2c..0e655bef58 100644
--- a/src/components/tabs/tab.ts
+++ b/src/components/tabs/tab.ts
@@ -85,13 +85,13 @@ import {TabButton} from './tab-button';
* ```
*
* Sometimes you may want to call a method instead of navigating to a new
- * page. You can use the `(select)` event to call a method on your class when
+ * page. You can use the `(ionSelect)` event to call a method on your class when
* the tab is selected. Below is an example of presenting a modal from one of
* the tabs.
*
* ```html
*
- *
+ *
*
* ```
*
@@ -204,7 +204,7 @@ export class Tab extends NavController {
/**
* @output {Tab} Method to call when the current tab is selected
*/
- @Output() select: EventEmitter = new EventEmitter();
+ @Output() ionSelect: EventEmitter = new EventEmitter();
constructor(
@Inject(forwardRef(() => Tabs)) parentTabs: Tabs,
diff --git a/src/components/tabs/tabs.ts b/src/components/tabs/tabs.ts
index 14a3e25041..eecb7207c0 100644
--- a/src/components/tabs/tabs.ts
+++ b/src/components/tabs/tabs.ts
@@ -203,7 +203,7 @@ export class Tabs extends Ion {
/**
* @input {any} Expression to evaluate when the tab changes.
*/
- @Output() change: EventEmitter = new EventEmitter();
+ @Output() ionChange: EventEmitter = new EventEmitter();
/**
* @private
@@ -272,7 +272,7 @@ export class Tabs extends Ion {
}
this._btns.toArray().forEach((tabButton: TabButton) => {
- tabButton.select.subscribe((tab: Tab) => {
+ tabButton.ionSelect.subscribe((tab: Tab) => {
this.select(tab);
});
});
@@ -365,8 +365,8 @@ export class Tabs extends Ion {
selectedTab.load(opts, () => {
- selectedTab.select.emit(selectedTab);
- this.change.emit(selectedTab);
+ selectedTab.ionSelect.emit(selectedTab);
+ this.ionChange.emit(selectedTab);
if (selectedTab.root) {
// only show the selectedTab if it has a root
@@ -445,8 +445,8 @@ export class Tabs extends Ion {
let instance = active.instance;
// If they have a custom tab selected handler, call it
- if (instance.tabSelected) {
- return instance.tabSelected();
+ if (instance.ionSelected) {
+ return instance.ionSelected();
}
// If we're a few pages deep, pop to root
diff --git a/src/components/tabs/test/advanced/index.ts b/src/components/tabs/test/advanced/index.ts
index b4a1f76ccb..b98d6b8dcd 100644
--- a/src/components/tabs/test/advanced/index.ts
+++ b/src/components/tabs/test/advanced/index.ts
@@ -73,14 +73,14 @@ class TabsPage {
constructor(private nav: NavController, private params: NavParams) {}
ngAfterViewInit() {
- this.tabs.change.subscribe(tab => {
- console.log('tabs.change.subscribe', tab.index);
+ this.tabs.ionChange.subscribe(tab => {
+ console.log('tabs.ionChange.subscribe', tab.index);
});
}
onTabChange() {
// wired up through the template
- //
+ //
console.log('onTabChange');
}
diff --git a/src/components/tabs/test/advanced/tabs.html b/src/components/tabs/test/advanced/tabs.html
index aba5d9491c..338c2b32ff 100644
--- a/src/components/tabs/test/advanced/tabs.html
+++ b/src/components/tabs/test/advanced/tabs.html
@@ -1,7 +1,7 @@
-
+
-
+
diff --git a/src/components/tabs/test/basic/index.ts b/src/components/tabs/test/basic/index.ts
index a88daac05a..b1c691879e 100644
--- a/src/components/tabs/test/basic/index.ts
+++ b/src/components/tabs/test/basic/index.ts
@@ -171,8 +171,8 @@ export class Tab3 {
-
-
+
+
@@ -182,6 +182,14 @@ export class TabsPage {
root1 = Tab1;
root2 = Tab2;
root3 = Tab3;
+
+ onChange(ev) {
+ console.log("Changed tab", ev);
+ }
+
+ onSelect(ev) {
+ console.log("Selected tab", ev);
+ }
}
@App({
diff --git a/src/components/toggle/test/basic/main.html b/src/components/toggle/test/basic/main.html
index 0cb8d0d466..2ab708e6d0 100644
--- a/src/components/toggle/test/basic/main.html
+++ b/src/components/toggle/test/basic/main.html
@@ -19,12 +19,12 @@
Apple, ngControl
-
+
Banana, ngControl
-
+
@@ -38,13 +38,13 @@
- Kiwi, (change) Secondary color
-
+ Kiwi, (ionChange) Secondary color
+
- Strawberry, (change) [checked]="true"
-
+ Strawberry, (ionChange) [checked]="true"
+
diff --git a/src/components/toggle/toggle.ts b/src/components/toggle/toggle.ts
index 26e9283085..662de1335c 100644
--- a/src/components/toggle/toggle.ts
+++ b/src/components/toggle/toggle.ts
@@ -96,7 +96,7 @@ export class Toggle implements ControlValueAccessor {
/**
* @output {Toggle} expression to evaluate when the toggle value changes
*/
- @Output() change: EventEmitter = new EventEmitter();
+ @Output() ionChange: EventEmitter = new EventEmitter();
constructor(
private _form: Form,
@@ -195,7 +195,7 @@ export class Toggle implements ControlValueAccessor {
if (isChecked !== this._checked) {
this._checked = isChecked;
if (this._init) {
- this.change.emit(this);
+ this.ionChange.emit(this);
}
this._item && this._item.setCssClass('item-toggle-checked', isChecked);
}