microlv's blog
Javascript - Angularjs - Nodejs

about me


web攻城师,目前就职于RIB公司,职称高级工程师(正所谓专业码农,哈哈),从事angularjs方面的单页应用开发。

RIB技术讲师,精通Javascript,nodejs,mongodb。

作为一名从C#转型到web端的开发者,我深刻体会到JS乐趣,这让我热衷于JS方面的开发,目前参与了多个开源的项目的建设。


PROJECT:

1. ng-web 是一个使用 angularjs,nodejs,mongodb 等热门技术, 目的是建立一个单页应用(sap:single page application)的个人博客系统。 目前demo网站已使用iojs部署,你完全可以使用它来建立自己的个人博客系统!

2. livejs 是一个支持promise的js库,简单但强大

3. ngMessage是一款基于angularjs的消息库,它可以使用在任何angularjs框架里,而且,它支持promise!

ng-web


ng-web 是一个使用 angularjs,nodejs,mongodb 建立的个人博客网站,目前demo网站已使用iojs部署,你完全可以使用它来建立自己 的个人博客系统!

Demo: http://microlv.heroku.com

ng-web is a single page application web site, technical main use angularjs,nodejs,mongodb, currently the demo web site has been changed to use iojs, you can deploy it as your self blog system!

livejs


livejs是一个支持promise的js库,简单但强大

特色:

1.所有事件均支持promise,并注入defer,在defer里你可以使用 resolve/reject 来控制流程.

2.检测异常,并转入到异常处理.


download from bower:

bower install livejs -S

livejs is a promise library, like q/async, but the code is simple and powerful and useful.

feature:

1.every function will inject a argument name 'defer', you can use it to resolve/reject.

2.detect the defer.err to see parent function has error or not.

ngMessage


ngMessage是一款基于angularjs的消息发送库,它能使用在 controller(控制器)/service(服务)/factory(工厂) 里, 由于service/factory是不包括$scope的,因此无法使用$scope来发送消息,而ngMessage正是因些而生! 而且,它支持promise!

特色:

1.强大的消息机制,可当作promise使用.

2.基于angular开发,比$scope发送的消息更高效.

3.使用单例开发,易于使用,开放接口多.


download from bower(require angularjs):

bower install ng-message -S

ngMessage is message center base on angularjs. it can use the message to inform other controller, also support service and factory(these don't contain $rootScope and $scope, you can't use $scope to broadcast a message in normal way), and it also support promise and then

feature:

1.powerful message! you can use it like q/async/promise!.

2.message for angular, different with $scope.$emit/$broadcast.

3.use single service(like message center) to register and send.