摘要: Learn how to set an elements background image to embedded SVG. This method has an added benefit of not incurring any HTTP requests, as the SVG is simp 阅读全文
posted @ 2017-02-24 22:45 Zhentiw 阅读(193) 评论(0) 推荐(0)
摘要: Learn how to set an SVG as the background image of an element. Background images can be resized by changing the width and height of the element contai 阅读全文
posted @ 2017-02-24 22:39 Zhentiw 阅读(246) 评论(0) 推荐(0)
摘要: Just like a bitmap image, you can compress an SVG by removing various pieces of code that aren’t necessary to it rendering properly. This reduces file 阅读全文
posted @ 2017-02-24 22:28 Zhentiw 阅读(274) 评论(0) 推荐(0)
摘要: To create a component dynamicly. 1. Add a container with ref: 2. View this container as ViewContainerRef. 3. We need ComponentFactoryResolver: 4. We w 阅读全文
posted @ 2017-02-24 04:11 Zhentiw 阅读(712) 评论(0) 推荐(0)
摘要: ElementRef: ElementRef is a way to access native html element, notice that it only works for Broswer. Render: Render helps to take care of different p 阅读全文
posted @ 2017-02-24 03:40 Zhentiw 阅读(382) 评论(0) 推荐(0)