我试图初始化我的角度(类型记录)应用程序,以使用防火墙。我有一个FirebaseService类,它有一个初始化应用程序的方法,即,
import {Injectable} from "@angular/core";
import * as firebase from 'firebase';
const firebaseConfig = {
apiKey: // my api key,
authDomain: // my auth domain,
databaseURL: // my database url,
storageB
我在plunker中使用了这个(Reflect.getMetadata('annotations',AppComponent)[0].template);,它工作得很好
但是在我的项目中,我有这个错误Property 'getMetadata' does not exist on type 'typeof Reflect'
这是我的项目配置
packege.json
{
"name": "ng2-demo",
"version": "1.0.0",
"descri
我已经在我的angular项目中安装了angular material,但是当我运行该项目时,我得到了这个错误。
ERROR in Metadata version mismatch for module C:/Users/Corandus/code/angular/webapp_2/node_modules/@angular/material/slide-toggle/typings/index.d.ts, found version 4, expected 3, resolving symbol AppModule in C:/Users/Corandus/code/angular/web
在实现FCM Background Web Notification时,我的服务中出现了以下错误
error TS2339: Property 'messaging' does not exist on type 'AngularFireMessaging'
messaging.service.ts
import { Injectable } from '@angular/core';
import { AngularFireMessaging } from '@angular/fire/messaging';
import {