在角度获取中:ReferenceError:未定义async

时间:2018-05-28 00:47:10

标签: angular rxjs angular6

我使用的是角度6和RxJS 6,当我在下面尝试这个例子时,我收到以下错误:

ReferenceError: async is not defined

See use example
https://github.com/angular/angularfire2

1 个答案:

答案 0 :(得分:0)

它取决于您在对象表达式中传递的值输入值。

输入值应为 <html> <head> <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/4.7.0/css/font-awesome.min.css" /> </head> <style> .thish { position: relative; height: 150px; width: 150px; background: red; } .thish::before { position: absolute; content: "\f2ba"; font: normal normal normal 14px/1 FontAwesome; right: 40%; color: #000; bottom: 0; height: 30px; width: 60px; background: green; z-index: 1; } </style> <body> <div class="thish"> </div> </body> </html> ,因为Observable | Promise | null | undefined管道订阅了Observable或Promise并返回它已发出的最新值。

相关问题