mayiwen_angular v0.0.32
address
组件在npmjs.com 组件在github.com
how to use it
- 在html中添加data-myw-theme,主要是组件是支持黑白主题的,必须给一个默认的主题
<html lang="en" data-myw-theme="white">
- npm i mayiwen_angular
- 在 AppModule 中 引入 MywModule
import { NgModule } from '@angular/core';
import { BrowserModule } from '@angular/platform-browser';
import { AppComponent } from './app.component';
import { MywModule } from 'mayiwen_angular';
@NgModule({
declarations: [
AppComponent
],
imports: [
BrowserModule,
MywModule
],
providers: [],
bootstrap: [AppComponent]
})
export class AppModule { }
- 在html中 app.component.html 添加
<myw></myw>
可以看到使用范例 具体使用因暂时没有文档,可以参照 https://github.com/mayiwen/mayiwen_angular
angular about
This project was generated with Angular CLI version 16.2.4.
Development server
Run ng serve
for a dev server. Navigate to http://localhost:4200/
. The application will automatically reload if you change any of the source files.
Code scaffolding
Run ng generate component component-name
to generate a new component. You can also use ng generate directive|pipe|service|class|guard|interface|enum|module
.
Build
Run ng build
to build the project. The build artifacts will be stored in the dist/
directory.
Running unit tests
Run ng test
to execute the unit tests via Karma.
Running end-to-end tests
Run ng e2e
to execute the end-to-end tests via a platform of your choice. To use this command, you need to first add a package that implements end-to-end testing capabilities.
Further help
To get more help on the Angular CLI use ng help
or go check out the Angular CLI Overview and Command Reference page.
5 months ago
6 months ago
6 months ago
6 months ago
6 months ago
6 months ago
6 months ago
6 months ago
6 months ago
7 months ago
7 months ago
7 months ago
7 months ago
7 months ago
7 months ago
7 months ago
7 months ago
7 months ago
7 months ago
7 months ago
7 months ago
7 months ago
7 months ago
7 months ago
7 months ago
7 months ago
7 months ago
7 months ago
7 months ago
7 months ago
8 months ago
8 months ago
8 months ago