chore(): rename IonicForm to Form

This commit is contained in:
Adam Bradley
2015-10-16 12:03:11 -05:00
parent bb3b20727c
commit 7a2ab2b6c4
6 changed files with 12 additions and 12 deletions

View File

@ -1,7 +1,7 @@
import {Component, Directive, Optional, NgControl, ElementRef, Renderer} from 'angular2/angular2';
import {Ion} from '../ion';
import {IonicForm} from '../../util/form';
import {Form} from '../../util/form';
/**
* The checkbox is no different than the HTML checkbox input, except it's styled differently
@ -43,7 +43,7 @@ import {IonicForm} from '../../util/form';
export class Checkbox {
constructor(
form: IonicForm,
form: Form,
@Optional() ngControl: NgControl,
elementRef: ElementRef,
renderer: Renderer

View File

@ -1,6 +1,6 @@
import {Component, Directive, ElementRef, Renderer, Host, Optional, NgControl, Inject, forwardRef} from 'angular2/angular2';
import {IonicForm} from '../../util/form';
import {Form} from '../../util/form';
import {Config} from '../../config/config';
import {pointerCoord} from '../../util/dom';
@ -103,7 +103,7 @@ export class Switch {
* @param {NgControl=} ngControl TODO
*/
constructor(
form: IonicForm,
form: Form,
elementRef: ElementRef,
config: Config,
renderer: Renderer,

View File

@ -1,7 +1,7 @@
import {Component, Directive, NgIf, forwardRef, Host, Optional, ElementRef, Renderer, Attribute, Query, QueryList, NgZone} from 'angular2/angular2';
import {Config} from '../../config/config';
import {IonicForm} from '../../util/form';
import {Form} from '../../util/form';
import {Label} from './label';
import {IonicApp} from '../app/app';
import {Content} from '../content/content';
@ -27,7 +27,7 @@ import {Platform} from '../../platform/platform';
export class TextInput {
constructor(
form: IonicForm,
form: Form,
elementRef: ElementRef,
config: Config,
renderer: Renderer,
@ -403,7 +403,7 @@ export class TextInputElement {
})
class InputScrollAssist {
constructor(form: IonicForm, textInput: TextInput) {
constructor(form: Form, textInput: TextInput) {
this.form = form;
this.textInput = textInput;
}

View File

@ -5,7 +5,7 @@ import {IonicApp} from '../components/app/app';
import {Config} from './config';
import {Platform} from '../platform/platform';
import {OverlayController} from '../components/overlay/overlay-controller';
import {IonicForm} from '../util/form';
import {Form} from '../util/form';
import {Keyboard} from '../util/keyboard';
import {ActionSheet} from '../components/action-sheet/action-sheet';
import {Modal} from '../components/modal/modal';
@ -50,7 +50,7 @@ export function ionicProviders(config) {
provide(TapClick, {useValue: tapClick}),
provide(FeatureDetect, {useValue: featureDetect}),
provide(Events, {useValue: events}),
IonicForm,
Form,
Keyboard,
OverlayController,
ActionSheet,

View File

@ -15,7 +15,7 @@ import {Config} from '../config/config';
* ```
*/
@Injectable()
export class IonicForm {
export class Form {
constructor(config: Config, zone: NgZone) {
this._config = config;

View File

@ -1,14 +1,14 @@
import {Injectable, NgZone} from 'angular2/angular2';
import {Config} from '../config/config';
import {IonicForm} from './form';
import {Form} from './form';
import * as dom from './dom';
@Injectable()
export class Keyboard {
constructor(config: Config, form: IonicForm, zone: NgZone) {
constructor(config: Config, form: Form, zone: NgZone) {
this.form = form;
this.zone = zone;