In this tutorial, we will show you how to use https://cli.angular.io/ along with the Angular Components by jQWidgets.
Please, follow the step by step instructions below:
npm install -g angular-cli
ng new myProject
cd myProject
npm install jqwidgets-framework --save
ng serve
Edit src/index.html:
<!doctype html>
Edit src/app.component.ts:
import { Component } from ‘@angular/core‘;
Edit src/app.component.html:
<jqxBarGauge
Edit src/app.module.ts:
import { BrowserModule } from ‘@angular/platform-browser‘;
Navigate to http://localhost:4200/ in your web browser
Result:
原文:http://www.cnblogs.com/kaid/p/7528662.html