我有两个标签和两个按钮
<md-tab-group>
<md-tab label="Tab 1">Content 1</md-tab>
<md-tab label="Tab 2">Content 2</md-tab>
</md-tab-group>
<button md-button (click)="showTab1()">Show Tab 1</button>
<button md-button (click)="showTab2()">Show Tab 2</button>
Run Code Online (Sandbox Code Playgroud)
如果我在Tab 1上,我需要函数showTab1()切换到选项卡1,如果单击该按钮,我需要执行showTab2().有人可以帮忙吗?
我正在学习关于使用 grpc 的教程,我应该使用插件来生成源代码,但我坚持如何使用 --grpc_out 和 --plugin 标志。
以下是当前的挑战。

如果我不使用这些插件标志 (--plugin,--grpc_out) 我的代码可以用这个命令生成
protoc -I /proto --java_out /hello/grpc/grpc/revamp/services /proto/messages.proto
以上工作正常
添加标志,使用从混淆 1 下载的插件会使用此命令引发此错误;
protoc -I /proto --java_out /hello/grpc/grpc/revamp/services /proto/messages.proto --grpc_out /hello/grpc/grpc/revamp/services --plugin=protoc-gen-grpc=/proto/ lib/protoc-gen-grpc-java-1.19.0-osx-x86_64.exe
--grpc_out: protoc-gen-grpc: 插件失败,状态码为 1。
有没有人在 osx 上使用过这个插件?,谁能帮忙看看我做错了什么。
提前致谢
下载minishift后,由于以下错误,我无法运行它,
Starting Minishift VM .... FAIL E0529 13:00:23.325175 82884 start.go:494] Error starting the VM: Error creating new host: json: cannot unmarshal bool into Go struct field Driver.Virtio9p of type []string. Retrying.
Run Code Online (Sandbox Code Playgroud)
以下是整个日志。
Isaacs-MacBook-Pro-2:minishift-1.34.0-darwin-amd64 isaack$ minishift start
-- Starting profile 'minishift'
-- Check if deprecated options are used ... OK
-- Checking if https://github.com is reachable ... OK
-- Checking if requested OpenShift version 'v3.11.0' is valid ... SKIP
-- Checking if requested OpenShift version 'v3.11.0' is supported …Run Code Online (Sandbox Code Playgroud) 我正在尝试从 maven 学习使用 gradle 和 springboot,所以我想知道如何在命令行中运行我的项目以获取不同的配置文件。这里的场景是我有我的属性,例如。
application-qa.properties和application.properties
但是如果用类似的东西运行 gradle ./gradlew -PspringProfile=qa bootRun
它仅加载application.properties中的默认属性,而不加载 qa 属性。
我如何像以前使用 Maven 一样使用 gradle 来实现这一点?
这是我尝试过的。我在 IntelliJ 中创建了 gradle run 配置,但这也不起作用,
有命令行选项吗?
angular ×1
gradle ×1
gradlew ×1
grpc ×1
grpc-java ×1
minishift ×1
spring-boot ×1
typescript ×1