Since rc0 a weird error is happening when running for android.
My HTML
Add Weather<ion-item>
<ion-label fixed>City</ion-label>
<ion-input type="text" [(ngModel)]='data.city'></ion-input>
</ion-item>
<ion-item>
<ion-label>Country</ion-label>
<ion-select [(ngModel)]='data.country'>
<ion-option value="uk">United Kingdom</ion-option>
<ion-option value="us">United States</ion-option>
</ion-select>
</ion-item>
<button ion-button block (click)="dismiss(data)">
Add Weather
</button>
My typescript
import { Component } from â@angular/coreâ;
import { NavController, ViewController } from âionic-angularâ;
@Component({
selector: âpage-add-pageâ,
templateUrl: âadd-page.htmlâ
})
export class AddPage {
public data: any = {
country: âptâ
}
constructor(public navCtrl: NavController,
public viewCtrl: ViewController) { }
dismiss(data) {
this.viewCtrl.dismiss(data);
}
}
Iâm stuck on this error:
[18:01:30] ngc error: Error: Error at /Users/gpires/code/dayssun/.tmp/pages/add-page/add-page.ngfactory.ts:732:29: Supplied parameters do not match any signature of call target.
Error at /Users/gpires/code/dayssun/.tmp/pages/add-page/add-page.ngfactory.ts:757:29: Supplied parameters do not match any signature of call target.
at check (/Users/gpires/code/dayssun/node_modules/@angular/tsc-wrapped/src/tsc.js:31:15)
at Tsc.typeCheck (/Users/gpires/code/dayssun/node_modules/@angular/tsc-wrapped/src/tsc.js:86:9)
at /Users/gpires/code/dayssun/node_modules/@angular/tsc-wrapped/src/main.js:33:23
at process._tickCallback (internal/process/next_tick.js:103:7)
at Module.runMain (module.js:592:11)
at run (bootstrap_node.js:394:7)
at startup (bootstrap_node.js:149:9)
at bootstrap_node.js:509:3
but running ionic serve everything runs well.
Any ideas?
Thanks