-
Vue用了也有很长时间了,一直在思考一个问题,Vue中的directive跟component到底应该应用在什么场景下.Angular中有directive,因为它没有component的概念,很多对于通用组件的封装都会用directive来实现,里面可以操作dom等.所以我在想是不是Vue中对于这两个的区别就是对DOM操作的都是写成一个directive,没有对dom进行操作的就写成一个comp…
-
在书写 JSX 时,经常会有一类需求,就是在特定条件下 render 一些组件。
例如:
- 显示警告信息时
```jsx
{this.showMessage && }
```
- 加载表格数据时
```jsx
{this.loading ? : }
```
这里,我使用 JavaScript 表达式进行处理,这样做,从代码的可读性和可维护性上看起来都还不错。
继续…
-
**描述JavaScript执行过程的上下文,可以在异步任务之间进行持久性传递,它类似于 Java 中的TLS( thread-local storage: 线程本地存储)技术,zone.js 则是将 TLS 引入到 JavaScript 语言中的实现框架**
## 应用场景
zone.js能实现异步Task跟踪,分析,错误记录、开发调试跟踪等
## Angular
zone 属于…
-
https://github.com/xiongwilee/koa-grace (koa-grace是基于koa 2.x的新一代Nodejs前后端分离框架。 :+1: )
http://purplebamboo.github.io/2015/02/16/qfilter/
https://github.com/purplebamboo/qfilter (qfilter是一个基于koa开发…
-
http://webpack.wuhaolin.cn/ , https://github.com/gwuhaolin/dive-into-webpack (深入浅出Webpack 👍 💯💯)
--------
https://www.villainhr.com/page/2017/10/27/%E7%9C%8B%E5%95%A5%E5%8F%8C%E6%8B%B1%E9%97%A…
-
If you do this
```coffeescript
class Blah
constructor:(@thing)->
@thing()
method:->
thing = "hi"
```
Coffeescript compiles to
```javascript
var Blah;
Blah = cla…
-
原文:http://eisenbergeffect.bluespire.com/all-about-angular-2-0/
Have questions about the strategy for Angular 2.0? This is the place. In the following article I'll explain the major feature areas of A…
-
Is it possible to add custom content like a button to a column instead of data field?
-
Hi All!
We are really keen to collect your feedback, and to start with, we'd like to know who is using **ngx-admin**. We would really appreciate if you:
- Share your company name
- Share your lo…
-
I've trying use ApexCharts in my RoR 6 app, but occurred the error below:
![image](https://user-images.githubusercontent.com/2581415/66693514-feb83e80-ec7f-11e9-8578-98d985abda6e.png)
My Gemfile…