Tag: ng2 semantic ui

asp.net核心spa模板,语义UI

我无法使用Microsoft.AspNetCore.SpaTemplate进行语义ui。 当我创建一个Angular CLI-App时,它工作正常,但我希望将它打包在一起。 我做了什么: 1)安装SPA模板: dotnet new –install Microsoft.AspNetCore.SpaTemplates :: * 2)创建新项目: dotnet new angular 3)安装所有deps: npm install 4)添加semantic-iu-css: npm i semantic-ui-css –save 5)添加ng2-semantic-ui: npm i ng2-semantic-ui –save 6)将“semantic-ui-css / semantic.css”和“ng2-semantic-ui”添加到webpack.config.vendor.js 7)运行webpack –config webpack.config.vendor.js来重建vendor.js 8)将“eot | woff | woff2 | ttf”添加到webpack.config.js中的URL-Loader 9)在app.module.client.ts中导入‘ng2-semantic-ui’ 当我运行应用程序时,我得到以下exception: 未捕获错误:模块“AppModule”导入的意外值“SuiModule”。 请添加@NgModule注释。 这是我的代码: home.component.ts import { Component } from ‘@angular/core’; import { […]