我在下面有一个代码:
<ion-item>
<ion-radio-group [value]="profileItem.Sex" [(ngModel)]="profileItem.Sex">
<ion-label class="input-label">{{ 'GENDER' | translate }}</ion-label>
<div style="display: flex;">
<span *ngFor="let genderType of genderTypeList">
<span>{{genderType.title}}</span>
<ion-radio [disabled]="profileItem.id" [value]="genderType.value"></ion-radio>
</span>
</div>
</ion-radio-group>
</ion-item>
Run Code Online (Sandbox Code Playgroud)
但无法在 profileItem.Sex 中获取选定值。
profileItem.Sex 没有改变。
如何在 ion-radio-group 标签中获得选定的值?
我们正在构建一个仅在浏览器上提供服务的企业级应用程序(即它只是一个网络应用程序,而不是移动应用程序)。它也永远不会在移动应用程序中转换。
有人可以分享您的建议/经验,什么更适合用于开发。
1.) 使用 Ionic 框架
2.) 将 Angular ( https://angular.io ) 与 Angular Material ( https://material.angular.io/components/categories ) 一起使用
我们有 Ionic 的专业知识(在移动开发方面),如果我们使用 Ionic 会有什么缺点吗?
谢谢!
我正在使用 Angular + Ionic 构建一个应用程序。
当我使用async pipe在模板中的observable中显示数据时。
我的理解是,当组件被销毁时,Angular 会自动取消订阅observable ,但是,如果我移动到另一个页面,则不会触发ngOnDestroy事件。这是否意味着我没有退订从观察到的?
谢谢!
我尝试使用 ion-button 在 ionic 4 中实现一个按钮,但没有样式,问题出在哪里,帮助。

嗨,我是 Ionic 的新手,当我想创建新的加载屏幕时出现此错误。
Argument of type '{ content: string; }' is not assignable to parameter
of type 'LoadingOptions'.
Object literal may only specify known properties, and 'content' does not exist in type 'LoadingOptions'.
Run Code Online (Sandbox Code Playgroud)
我看到文档,我认为语法很好。
const loading = await this.loadingController.create({
content: 'Please wait...',
});
await loading.present();
Run Code Online (Sandbox Code Playgroud) 我想检查两个字段的值是否相同,这些字段必须通过参数传递给验证函数,我是这样做的,问题是获取不到字段的值,出现null,因为我可以正确动态地获取值吗?
我的表单构建器,我正在使用匹配功能来检查 cell_phone 和确认字段。
this.recharge = this.formBuilder.group({
cell_phone: ['', Validators.required, Validations.match('cell_phone', 'cell_phone_confirmation')],
cell_phone_confirmation: ['', [Validators.required]],
value: ['', Validators.required],
operator_id: ['', Validators.required]
});
Run Code Online (Sandbox Code Playgroud)
在我的函数中,控制台日志为空:
static match(field1: string, field2: string){
return (group: FormGroup) => {
console.log(group.get(field1));
}
}
Run Code Online (Sandbox Code Playgroud) 我运行 ionic cordova build ios 并且响应永远是错误
请帮我
** BUILD FAILED **
The following build commands failed:
CompileXIB MyApp/Classes/MainViewController.xib
(1 failure)
CordovaError: Promise rejected with non-error: 'Error code 65 for command: xcodebuild with args: -xcconfig,/Users/linuxplus/Public/Teste/platforms/ios/cordova/build-debug.xcconfig,-workspace,MyApp.xcworkspace,-scheme,MyApp,-configuration,Debug,-sdk,iphonesimulator,-destination,platform=iOS Simulator,name=iPhone SE,build,CONFIGURATION_BUILD_DIR=/Users/linuxplus/Public/Teste/platforms/ios/build/emulator,SHARED_PRECOMPS_DIR=/Users/linuxplus/Public/Teste/platforms/ios/build/sharedpch'
at cli.catch.err (/usr/local/lib/node_modules/cordova/bin/cordova:30:15)
at process._tickCallback (internal/process/next_tick.js:68:7)
[ERROR] An error occurred while running subprocess cordova.
cordova build ios exited with exit code 1.
Re-running this command with the --verbose flag may provide more information.
Run Code Online (Sandbox Code Playgroud) 当我尝试使用import nativepagetransition提供程序时,它显示了一个错误。
import { BrowserModule } from '@angular/platform-browser';
import { ErrorHandler, NgModule } from '@angular/core';
import { IonicApp, IonicErrorHandler, IonicModule } from 'ionic-angular';
import { SplashScreen } from '@ionic-native/splash-screen';
import { StatusBar } from '@ionic-native/status-bar';
import { LinkPage } from '../pages/link/link';
import { NativePageTransitions } from '@ionic-native/native-page-transitions';
import { MyApp } from './app.component';
import { HomePage } from '../pages/home/home';
@NgModule({
declarations: [
MyApp,
HomePage,
LinkPage,
],
imports: [
BrowserModule,
IonicModule.forRoot(MyApp)
],
bootstrap: [IonicApp],
entryComponents: [
MyApp,
HomePage,
LinkPage …Run Code Online (Sandbox Code Playgroud) 我正在使用ionic 3 ,我试图通过firebase将google plus 登录集成到我的应用程序中。但我收到错误,
错误是>>
ERROR TypeError: Object(...) is not a function
at GooglePlus.login (index.js:27)
at HomePage.webpackJsonp.186.HomePage.login (home.ts:28)
at Object.eval [as handleEvent] (HomePage.html:3)
at handleEvent (core.js:13589)
at callWithDebugContext (core.js:15098)
at Object.debugHandleEvent [as handleEvent] (core.js:14685)
at dispatchEvent (core.js:10004)
at core.js:10629
at HTMLButtonElement.<anonymous> (platform-browser.js:2628)
at t.invokeTask (polyfills.js:3)
I am putting code below which I have used for integrationg google plus Integration
Run Code Online (Sandbox Code Playgroud)
.ts 文件
import { Component } from '@angular/core';
import { IonicPage, NavController, NavParams } from …Run Code Online (Sandbox Code Playgroud) 我有一个离子项目。该应用程序之前已成功构建并在我的 android 手机中运行。但是突然有一天,当我运行命令“ionic cordova run android”时,我收到如下构建错误:
任务 ':transformClassesWithDexForDebug' 执行失败。com.android.build.api.transform.TransformException:com.android.ide.common.process.ProcessException:java.util.concurrent.ExecutionException:java.lang.OutOfMemoryError:Java 堆空间
我尝试过“cordova clean”来同步cordova插件。但它不起作用..
如何解决这个问题呢?
ionic-framework ×10
angular ×6
ionic3 ×5
cordova ×3
ionic2 ×2
android ×1
angular7 ×1
angularfire2 ×1
build ×1
ionic-native ×1
ionic4 ×1
ios ×1