如何根据使用Angular选择的特定语言选项设置语言字段值
我需要根据从我的理解的两种方式绑定的帮助下根据语言选择的语言来更新语言字段。请帮助我如何在Angular中实现这一目标,
这是相同的
https://stackblitz.com/edit/angular-ivy-i4bnft?file=src/app/app/app/app.module.ts
I need to update the language fields based on the language selected from the languages available with the help of two way binding based on my understanding. Please help me how achieve this in angular
Here is the Stackblitz link for the same
https://stackblitz.com/edit/angular-ivy-i4bnft?file=src/app/app.module.ts
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
我做了一个简单的 stackblitz 正在寻找。
基本上,您将选择绑定到TS文件中的变量 selectedLanguage 。
您还可以编写一些 selectLanguage 函数以通过按钮设置它,
然后完成,单击任何按钮时,您的选择将被更新
I made a simple Stackblitz of what you are looking for.
Basically you bind your select to a variable selectedLanguage in your ts file.
You also write a little selectLanguage function to set it via the buttons
And you're done, your select will be updated when clicking any button