https://github.com/lianbinghua

摘要: 依赖注入 依赖注入(DI)是一个经典的设计模式, 主要是用来处理组件如何获得依赖的问题。关于DI,推荐阅读Martin Flower的文章(http://martinfowler.com/articles/injection.html)。 Angular负责创建组件,解决它们之间的依赖关系,并按要求... 阅读全文
posted @ 2015-09-17 18:03 连冰华 阅读(1236) 评论(0) 推荐(0) 编辑
摘要: 方法1:写filter deliciousApp.filter('html', ['$sce', function ($sce) { return function (text) { return $sce.trustAsHtml(text); }; }]);方... 阅读全文
posted @ 2015-09-17 17:27 连冰华 阅读(1039) 评论(0) 推荐(0) 编辑
摘要: height:200px;overflow-y: scroll;width: 90%;-webkit-overflow-scrolling: touch; 阅读全文
posted @ 2015-09-17 13:26 连冰华 阅读(334) 评论(0) 推荐(0) 编辑