[英]How to use SVG for inital Angular2 load
Instead of the Angular2's default application "Loading..", I would like to do a SVG Loading spinner. 而不是Angular2的默认应用程序“ Loading ..”,我想做一个SVG Loading微调器。 Is this possible? 这可能吗?
Yes, you can simply replace the "Loading..." text inside the <my-app>
tags in your index.html file with any HTML or SVG and it should just render that content while the app loads and angular takes over rendering: 是的,您可以简单地用任何HTML或SVG替换index.html文件中<my-app>
标记内的“正在加载...”文本,它应仅在应用程序加载时渲染该内容,而角度将接管渲染:
<my-app>
<svg>
<!-- your svg code here...-->
</svg>
</my-app>
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.