当前位置: 首页 > 工具软件 > ngx-toastr > 使用案例 >

Angular_ngx bootstrap locale

李辉
2023-12-01

在使用 Datepicker 组件中用到了Locales 

 

使用方法

module

import { BsLocaleService, zhCnLocale, defineLocale } from 'ngx-bootstrap';

defineLocale('zhcn', zhCnLocale);
  constructor(
    private garbageServices: GarbageCollectionService,
    private toastr: ToastrService,
    private localeService: BsLocaleService) {
      this.localeService.use('zhcn'); }

zhcn 必须小写。

 

 

 类似资料:

相关阅读

相关文章

相关问答