目前我正在对我们的基础设施进行小型重构。我的项目的当前版本类似于以下内容: 我正在尝试使用 for_each 来重用变量。
resource "google_cloud_scheduler_job" "job" {
name = "Create_All_Dossier_Summary"
description = "desc1"
schedule = "0 19 * * 1"
time_zone = "America/Sao_Paulo"
attempt_deadline = "320s"
retry_config {
retry_count = 1
}
http_target {
http_method = "POST"
uri = "<some-url>"
}
}
Run Code Online (Sandbox Code Playgroud)
我正在尝试将其升级为如下所示:
variable "description" {
default = ["desc1", "desc 2"]
}
resource "google_cloud_scheduler_job" "job" {
for_each = toset(var.description)
name = "Create_All_Dossier_Summary"
description = each.value
schedule = "0 19 * * 1"
time_zone = "America/Sao_Paulo"
attempt_deadline = "320s"
retry_config …Run Code Online (Sandbox Code Playgroud) 我是 NgRx 的新手,过去一周我一直在学习。
所以,我试图检查Push Pipe和let 指令。
根据 NgRx 文档,这个家伙的安装将使用以下命令:
yarn add github:ngrx/component-builds.git
Run Code Online (Sandbox Code Playgroud)
我的代码如下:
<ons-list-item expandable *ngFor="let user of users$ | ngrxPush">
<!-- code here -->
</ons-list-item>
Run Code Online (Sandbox Code Playgroud)
之后我试图找到我需要导入的模块来拥有这个管道。要拥有异步管道,我只需要导入CommonModule。
知道我应该导入什么才能使其正常工作吗?看起来这部分的文档不太清楚。