如何使用fontawesome用ionic 2
的,我下面这个教程,但它不工作.
我在工作中ionic 2 beta 11
的IOS平台上运行使用的应用程序后ionic run ios
一white screen
出现,得到了以下信息:
Native: deviceready did not fire within 2000ms. This can happen when plugins are in an inconsistent state. Try removing plugins from plugins/ and reinstalling them.
Run Code Online (Sandbox Code Playgroud)
有什么建议吗?究竟是什么问题?
我需要在另一个控制器中调用 ,有可能吗?function
ionic 2
在我的代码下面,我想调用loadPeople
标签控制器.
home.ts
import { Component } from '@angular/core';
import { NavController } from 'ionic-angular';
import {PeopleService} from '../../providers/people-service/people-service';
@Component({
selector: 'page-home',
templateUrl: 'home.html'
})
export class HomePage {
constructor(public navCtrl: NavController,public peopleService: PeopleService) {
this.loadPeople();
}
loadPeople(){
this.peopleService.load()
.then(data => {
this.people = data;
});
}
}
Run Code Online (Sandbox Code Playgroud)
tabs.ts
import { Component } from '@angular/core';
import { HomePage } from '../home/home';
import { AboutPage } from '../about/about';
import { ContactPage } …
Run Code Online (Sandbox Code Playgroud) 我将创建一个购物应用程序ionic 2
,在产品细节中,我创建了一个步进器,用于增加和减少数量值.
我的问题:如何ionic 2
在我的组件中获取输入值?
我想将一个POST
表单提交到外部 URL,这应该使用应用程序浏览器打开一个带有post data params的新窗口,那么我该怎么做ionic2
呢?
我想知道多个请求是否:
如果我$http request 1
开始,让我们说$http request 1
结束并试图打电话$http request 2
。我的问题如何创建多个请求?
例如:调用$http request 1
then $http request 2
。
我Alert Component
在我的ionic 2
项目中导入如下:
import {Alert } from 'ionic-angular';
Run Code Online (Sandbox Code Playgroud)
用法:
let alert = this.alert.create({
title: 'New Friend!',
subTitle: 'Your friend, Obi wan Kenobi, just accepted your friend request!',
buttons: ['OK']
});
alert.present();
Run Code Online (Sandbox Code Playgroud)
但我的错误是: Property create does not exist on type Alert.
离子信息:
Cordova CLI: 6.3.0
Gulp version: CLI version 1.2.1
Gulp local: Local version 3.9.1
Ionic Framework Version: 2.0.0-beta.10
Ionic CLI Version: 2.0.0-beta.37
Ionic App Lib Version: 2.0.0-beta.20
ios-deploy version: 1.8.6
ios-sim version: 5.0.8
OS: Mac OS …
Run Code Online (Sandbox Code Playgroud) ionic2 ×8
angular ×2
components ×2
http ×2
typescript ×2
accordion ×1
alert ×1
cordova ×1
font-awesome ×1
http-post ×1
icons ×1
inappbrowser ×1
input ×1
ionic3 ×1
request ×1
toggle ×1