Магазин Ngrx получает ошибку, так как свойство типа ofType не существует для типа

На некоторых ОС вы получаете . .. и .DS_Store, ну мы не можем их использовать, поэтому давайте спрячем их.

Сначала начните получать всю информацию о файлах, используя scandir()

// Folder where you want to get all files names from
$dir = "uploads/";

/* Hide this */
$hideName = array('.','..','.DS_Store');    

// Sort in ascending order - this is default
$files = scandir($dir);
/* While this to there no more files are */
foreach($files as $filename) {
    if(!in_array($filename, $hideName)){
       /* echo the name of the files */
       echo "$filename"{<br>$filename}";<br>";
    }
}
1
задан 3gwebtrain 17 January 2019 в 16:19
поделиться

1 ответ

в рамках вашего первого эффекта вы не поместили ofType в pipe:

, поэтому вместо:

Login: Observable<any> = this.actions
        .ofType(AuthenticationActionTypes.LOGIN)
        .pipe(

сделайте:

Login: Observable<any> = this.actions.pipe(
        ofType(AuthenticationActionTypes.LOGIN)
0
ответ дан dee zg 17 January 2019 в 16:19
поделиться
Другие вопросы по тегам:

Похожие вопросы: