![](https://img-blog.csdnimg.cn/20201014180756919.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
angular.js
z-min
该博客是个人平常学习所用,如有错误欢迎指正!
展开
-
Angular.js路由复用
路由在执行过程中对组件无状态操作,即路由离退时组件状态也一并被删除;当然在绝大多数场景下这是合理的。但有时需要切换页面的时候,再切换回该页面保持原来的状态。此时我们就需要 Angular 的RouteReuseStrategy 贯穿路由状态并决定构建组件的方式,需要复用的复用,不需要的可以选择不用。 Angular官方文档给出的API abstract class RouteReuseStrate...转载 2019-06-20 15:06:57 · 268 阅读 · 0 评论 -
angular中使用swiper,分页点样式不显示的问题
最近在学习angular,用 ngx-swiper-wrapper 做一个轮播的功能,组件安装好,代码写好后,轮播分页点的样式怎么都不显示,在当前组件的css中重新写也不起作用 最后在全局的css样式中加载样式,解决了这个问题 <div class="swiper-pagination"></div> ngOnInit() { this.config = ...原创 2019-07-16 14:00:39 · 1014 阅读 · 0 评论