"export 'DOCUMENT' was not found in '@angular/platform-browser'

后端 未结 4 1155
醉酒成梦
醉酒成梦 2020-12-09 11:52

Happened while trying to upgrade IONIC app from version 3 to 4

Updated all plugins and modules to latest available, without any luck.

ERROR in ./node         


        
4条回答
  •  猫巷女王i
    2020-12-09 12:34

    inside this "\node_modules\ionic-angular\module.js" && app.js file we can't change if we are changing manuvally it dosent take;

    so i suggest BehaviorSubject of angular functionality we can get componet changing values in any other component

    page.ts // component

    import { BehaviorSubject } from 'rxjs';

    public status = new BehaviorSubject('');
      currentStatus = this.status.asObservable()
    

    ; // write this code inside the export class services

    changeStatus(status){
      console.log('current status from common services:',status)
      this.status.next(status); // pass value to public observable variable
      }
    

    you can subscribe response in other componet

提交回复
热议问题