cost 311 ms
Angular 2 Dart:如何检测点击除元素之外的所有内容? - Angular 2 Dart: How to detect click on everything but element?

在一个组件中包含许多不同组件的应用程序中,我有一个自定义自动建议框。 如果用户点击自动建议框(或包含自动建议框的元素)的任何位置,则应关闭该框。 这就是我在jQuery中要做的事情: 但是在我的Angular Dart模板中,我有: index.html的: 我可以 ...

Angular 2 Dart:如何在父路由器和子组件之间共享变量? - Angular 2 Dart: How to share variables between parent with router and child components?

如果让子组件与路由器一起使用并通过绑定更新它们,我如何共享变量? 这是我的代码(的一部分): app_component.dart: app_component.html: login_component.dart: profile_component.dar ...

Angular 2 Dart:如何在导入的子组件中选择和更改元素? - Angular 2 Dart: How to select and change element in an imported sub-component?

以下angular / dart库( https://pub.dartlang.org/packages/pikaday_datepicker_angular2 )似乎写得不太好,因为无法设置日期的外部更改(没有设置器-我只能在开始时设置默认的日期/日期,但如果更改了externallay,则不 ...

Angular 2 Dart:如何从组件内部添加body类? - Angular 2 Dart: How to add body class from inside component?

我的Angular 2 Dart应用程序有许多嵌套组件。 如果我的某个组件的某个属性设置为true,则会显示一个弹出窗口。 如果显示此弹出窗口,我想向文档正文添加一个类。 伪代码示例: 原因很简单:如果显示弹出组件,我想禁用正文滚动( overflow-x:hidden; ...

Angular 2 Dart:模板语法 - 如何连接字符串? - Angular 2 Dart: Template syntax - how to concatenate strings?

感觉像一个愚蠢的问题,但我不明白。 如何在Angular 2 Dart模板中进行快速字符串连接? 我的组件有一个单独的html文件,让我们说my_component.html : 作品: 作品: 不起作用: 不起作用: 试图在这里的文档中找到答案( ...

使用IntelliJ IDEA和Dart插件,Dart异常最终会在哪里? - Using IntelliJ IDEA and the Dart plugin, where does the Dart exceptions end up?

我一直在使用IntelliJ IDEA(2016.3.5)和最新的Dart插件玩Angular2,我无法弄清楚错误,异常,断言失败等的结果。 我正在使用DART_FLAGS="--checked"运行Dartium,并且pub serve似乎默认为调试模式,据我所知。 Dart2js也配 ...

ngIf内的表格控制仍使整个表格无效 - form control inside ngIf is still invalidating the whole form

我有一个使用控件进行验证的输入组件。 该组件正在带有ngIf的标签中使用。 当ngIf为false时,不呈现输入,这是预期的结果,但是,问题在于它仍然使整个表单无效。 我该怎么办,以使该表单不会被错误的ngIf语句内的输入所无效。 谢谢 ...

Dart / Angular 2:Pub在页面重新加载时投放404 - Dart/Angular 2: Pub serve 404 on page reload

有一些类似的问题,但我尚未找到解决该问题的任何方法。 假设我使用 酒吧服务-端口13371 为了在本地启动我的Angular 2 / Dart应用程序。 在基本文件中,我有一个配置如下的路由器: 和这样的模板: 在Dartium或其他浏览器中,我转到ht ...


 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM