0.0.3 • Published 4 years ago

ng-jelf v0.0.3

Weekly downloads
17
License
-
Repository
-
Last release
4 years ago

特性

  • 开箱即用的高质量 Angular 组件,与 Angular 保持同步升级。
  • 使用 TypeScript 构建,提供完整的类型定义文件。
  • 支持自定义主题。
  • 支持使用单独某个组件。

支持环境

  • Angular ^6.0.8
  • 现代浏览器,以及 Internet Explorer 11+

Getting Started

  1. 新建项目
$ ng new New-Project
  1. 安装
$ cd New-Project
$ npm i ng-jelf
  1. 使用
import { BrowserModule } from '@angular/platform-browser';
// need for animations
import { BrowserAnimationsModule } from '@angular/platform-browser/animations';
import { NgModule } from '@angular/core';
import { NgJelfModule } from 'ng-jelf';
import { AppComponent } from './app.component';

@NgModule({
  declarations: [
    AppComponent
  ],
  imports: [
    BrowserModule,
    BrowserAnimationsModule,
    NgJelfModule
  ],
  bootstrap: [ AppComponent ],
})
export class AppModule { }
  1. angular.json 文件引入ng-jelf组件库样式文件
{
  "styles": [
    ...
   "node_modules/ng-jelf/ng-jelf.min.css"
  ]
}
  1. 启动
$ ng serve --open