📌  相关文章
📜  InvalidPipeArgument: '[object Object]' for pipe 'AsyncPipe' - 任何代码示例

📅  最后修改于: 2022-03-11 14:59:25.093000             🧑  作者: Mango

代码示例1
export class MoviesComponent implements OnInit {
  movies: any[];

  constructor(private moviesDb: MoviesService) { }

  ngOnInit() {
    this.moviesDb.get().subscribe((snaps) => {
       this.movies = snaps;
   });
 }
}