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