Giter Club home page Giter Club logo

ng-control's Introduction

ng-control

见过不少Angular的UI库,但是对它们的实现都不太满意。诚然,Angular给我们带来了很多便利,比如双向绑定,但是这不意味着在做控件的时候,就需要把控件的功能都尽量用这类功能实现。

Angular提供控件最直接的方式是指令,指令是一种高度抽象的技术,把界面相关的逻辑实现隐藏起来,给使用者最大的方便,但是指令内部如何实现,并没有什么方向性的约定。用控件的人其实并不关注你的实现方式,重要的是他用的时候要尽量方便。

我对已有的一些Angular控件的不满,就源自它混杂了各种层级的控制器,用起来各种坑。其实所谓控件,要跟外界交互些什么呢?无非是配置和数据,以及一些事件的交互,真没有必要搞这么麻烦。

我试试吧。

删除原来所有代码,准备重构为ES6,2015年10月4日

todo 代码待整理

npm install

npm run dev

ng-control's People

Contributors

xufei avatar jinwyp avatar

Watchers

James Cloos avatar Ray avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.