我正在研究angular-cli.我有以下错误.
./src/main.ts中的错误找不到模块:错误:无法解析'D:\ material\matapp\src'中的'./$$_gendir/app/app.module.ngfactory'@ ./src/ main.ts 3:0-74 @ multi ./src/main.ts
我的main.ts档案:
import { enableProdMode } from '@angular/core';
import { platformBrowserDynamic } from '@angular/platform-browser-dynamic';
import { AppModule } from './app/app.module';
import { environment } from './environments/environment';
if (environment.production) {
enableProdMode();
}
platformBrowserDynamic().bootstrapModule(AppModule);
Run Code Online (Sandbox Code Playgroud)
我使用下面的代码,当我点击时我没有得到id.
<button ion-item (click)="goToDrivePage()" *ngFor="let eventNames of eventType.events">
{{eventNames.id}}
</button>
Run Code Online (Sandbox Code Playgroud)
任何身体帮助我在功能中获得id?