Python
Java
PHP
IOS
Android
Nodejs
JavaScript
Html5
Windows
Ubuntu
Linux
如何更新状态变更指令
我有一个根状态 它定义了 Angular 模板的整体结构 在根状态下 我包含侧边栏 其中通过根据状态更改的指令具有动态菜单 像这样 state root abstract true url root templateUrl views ro
angularJS
angularjsscope
angularjscontroller
angulardirective
当我在角度中使用“key”而不是“keyCode”和“KeyboardEvent”时出现错误
我正在尝试为输入字段 文本框 创建自定义指令 使其仅接受数字而不接受字母字符 我有以下 only numbers directive ts 文件 import Directive ElementRef HostListener from a
angular
angulardirective
是否可以为自定义组件(而不是 FormControl)创建一个验证器
我正在尝试这样做 Directive selector myVal myCustomInputToComponent providers provide NG VALIDATORS useExisting forwardRef gt MyV
angular
validation
angulardirective
如何限制素材输入中的特殊字符
我有一个材料输入控件 我在用户输入时限制了特殊字符 但是当在任何编辑器中键入一些单词并复制并粘贴带有特殊字符的单词时 这是不起作用的 我已经为此编写了指令以防止特殊字符 但是可以在复制粘贴中提供更好的解决方案限制 应用程序组件 html
angular
Angular5
angular2directives
angular6
angulardirective
将函数与 Angular 7 中注入的 html 绑定
我想使用innerHTML 在运行时将函数绑定到注入的html 中 我的组件 Component selector my app template div div styleUrls my app css encapsulation Vie
angular
angulardirective
Angular 4指令错误:无法解析指令的所有参数
我对 Angular 完全陌生并尝试注入基本结构指令 https angular io guide structural directives the myunless property来自角度指南 这是我的指令 import Direct
angular
typescript
angulardirective
Angularjs 表单验证顺序
我有一个简单的 html 表单 其中包含常规文本输入 ng minlength ng maxlength and ng pattern有角的内置表单输入指令 http docs angularjs org api ng directive
javascript
angularJS
Forms
validation
angulardirective
无法在单元测试用例中调用@HostListener方法
我使用创建了一个自定义指令 Directive我正在使用的 HostListener并且代码运行良好 现在 在编写测试用例时 我需要调用 HostListener单元测试用例中的方法 我还可以看到在代码覆盖率中代码没有被覆盖 以下是代码 焦
angular
unittesting
jasmine
angulardirective
为什么在 Angular 指令的链接函数中“this”为空?
我正在尝试使用 TypeScript 和 Angular 编写动态模板 但由于某种原因 this 关键字始终为空 因此我无法访问我的私有成员 compile 有任何想法吗 非常感谢 指示 namespace ROD Features Pla
javascript
angularJS
typescript
angulardirective
角度范围绑定 &(&) 是一次性绑定吗?
角度范围绑定 是一次性绑定吗 我看到它被称为单向绑定 但它也是一次性的吗 假设我有
javascript
angularJS
angularjsscope
angulardirective
Angular 2 ngStyle 和背景图像[重复]
这个问题在这里已经有答案了 我对 Angular 2 ngStyle 指令遇到了很大的麻烦 我无法从 Base64 编码文件设置背景图像 现在在 template html 中我有这个 div class projects item wra
css
angular
angulardirective
角度指令 - 要求嵌入?
我在下面收到错误 我不明白为什么 有任何想法吗 html
javascript
php
html
angularJS
angulardirective
使用 angular4 的拖放事件在 IE11 中不起作用
I am using a directive to get the files when it is dropped on the HTML element it is working fine in chrome but it is no
javascript
angular
addEventListener
angulardirective
如何使用 Angular 的装饰器模式来增强指令的链接功能?
我正在开发一个 Angular 库 并寻找一种使用装饰器模式扩展指令的方法 angular module myApp decorator originaldirectiveDirective delegate function delega
javascript
angularJS
angulardirective
Angular2 中的 ng-disabled 有什么替代方案吗?
我正在使用 angular2 进行开发 想知道是否有其他选择ng disabled在角度2中 对于前 下面的代码是在 angularJS 中
angular
angulardirective
AngularJS - 多个指令实例多次调用 XHR
我有一个 Angularjs 指令 ExampleDirective 它具有控制器 ExampleController 控制器定义了两个 Promise 对象 其中每个 Promise 对象发出 Http GET 请求并返回响应 在指令中
angularJS
http
angulardirective
angularcontroller
如何使用结构指令更改边框?
我正在尝试创建一个可以做两件事的角度指令 1 change border of the host element 2 append a button at the end of the host element 截至目前 我已经迈出了第一步
angular
angulardirective
AngularJS 重新编译动态 html 时删除旧的 $watchers
我有一个 AngularJS 应用程序 用于动态构建页面 从服务器检索 XML 并通过读取 XML 构建页面或表单 对于 XML 我们必须构建几个页面 所有页面都彼此相关 并且可以通过 下一步 否定 上一个 按钮 为了实现我们有类似的东西
angularJS
angulardirective
在 Angular 2+ 中扩展 FormControlDirective
我正在看这个问题 试图弄清楚如何扩展 FormControlDirective 尝试扩展 FormControlDirective 来实现我自己的 FormControl 指令会导致绑定错误 https stackoverflow com
angular
angulardirective
angularreactiveforms
angularforms
我可以在结构指令中同时做两件事吗?
我想创建一个结构指令 其行为如下 p This is some text p If condition is false那么 p tag is not完全呈现 If condition is true那么 p p 标签是用额外的class属
angular
angulardirective
1
2
»