效果展示:
一、在npm社区中搜索 :
ng-circle-progress
二、在项目目录下安装下载
npm install ng-circle-progress --save
三、在app.module.ts文件中导入NgCircleProgressModule模块,
并在@NgModule装饰器中使用NgCircleProgressModule.forRoot()的方法,里面的参数
是个对象字面量
NgCircleProgressModule.
forRoot({
radius:
100,
outerStrokeWidth:
16,
innerStrokeWidth:
8,
outerStrokeColor:
"#78C000",
innerStrokeColor:
"#C7E596",
animationDuration:
300
})
四、在app.component.html中导入标签
其中参数有: