@yunzhi/ng-theme
TypeScript icon, indicating that this package has built-in type declarations

18.0.0 • Public • Published

基于bootstrap4的蓝色主题

说明

该模板由本文件夹中的代码以及asset中的basic共同组成。

依赖

npm install -s bootstrap@4.6.0
npm install -s @fortawesome/fontawesome-free@5.15.3

使用步骤

  1. 引入样式表
"styles": [
  "./node_modules/bootstrap/dist/css/bootstrap.css",
  "./node_modules/@fortawesome/fontawesome-free/css/all.css",
  "src/styles.scss"
]
  1. add header

  2. 使用方法

import { Component } from '@angular/core';
import { RouterOutlet } from '@angular/router';
import { BasicComponent, ThemeService } from '../../projects/theme/src/public-api';

export class MyThemeService extends ThemeService {
  // 在此复写
}

@Component({
  selector: 'app-root',
  standalone: true,
  imports: [BasicComponent],
  template: `
    <theme-basic>
      <h1>hello</h1>
    </theme-basic>`,
    providers: [
      {
        provide: ThemeService, useClass: MyThemeService
      }
    ]
})
export class AppComponent {
  title = 'angular19';
}

Versions

Current Tags

VersionDownloads (Last 7 Days)Tag
18.0.02latest

Version History

VersionDownloads (Last 7 Days)Published
18.0.02
19.0.11
19.0.00
15.0.01
0.0.80
0.0.70
0.0.60
0.0.50
0.0.40
0.0.30
0.0.20
0.0.10

Package Sidebar

Install

npm i @yunzhi/ng-theme

Weekly Downloads

4

Version

18.0.0

License

none

Unpacked Size

151 kB

Total Files

20

Last publish

Collaborators

  • myskies