前端
文章平均质量分 53
DTran
这个作者很懒,什么都没留下…
展开
-
快速使用ABP+Zorro
ABP前台操作流程下载前往ASP.NET Boilerplate Startup Templates下载例子下载完成后按照流程Startup-Template-Angular操作,或直接用angular前端部分衔接已有的后台(以下操作衔接南海项目现有API)配置到项目目录下安装包npm i或者npm install或yarn addcd XXXnpm i安装好后需更新NSwag生成的客户端调用代码更新nswag的后台api地址nswag路径nswag/service.co原创 2021-10-30 01:21:57 · 304 阅读 · 0 评论 -
angular快速入门
angular简介与angularJS的区别路由依据:SPA名称简介Routes路由配置RouterOutlet在html中标记路由内容呈现的占位符指令Router负责运行时执行路由的对象RouterLink在html中 <a> 标签中使用ActivatedRoute当前激活的路由对象,保存着当前路由的信息重定向路由redirectTo{ path: '', redirectTo: '/player/player-li原创 2021-10-30 01:19:47 · 197 阅读 · 0 评论 -
Set the ‘experimentalDecorators‘ option in your ‘tsconfig‘ or ‘jsconfig‘ to remove this warning
typescript添加了模块之后显示errortsconfig.json中添加了 "emitDecoratorMetadata": true, "experimentalDecorators": true,解决方案是在vscode的setting中设置"js/ts.implicitProjectConfig.experimentalDecorators":true参考:Experimental decorators warning in TypeScript compilation.原创 2021-05-06 15:55:02 · 1487 阅读 · 0 评论 -
antv/g2在angular 10中 TypeError: Cannot read property ‘appendChild‘ of null
在视图渲染后再画图 ngAfterViewInit(){ this.chart(); } }原创 2021-04-15 19:06:06 · 780 阅读 · 0 评论 -
Abp前端快速整理
准备工作开启api服务cd angular,运行npm run nwagservice-proxy.module添加新增服务的代理类@NgModule({ providers: [ ApiServiceProxies.RoleServiceProxy, ApiServiceProxies.SessionServiceProxy, ApiServiceProxies.TenantServiceProxy, ApiServicePr原创 2020-12-11 16:11:49 · 433 阅读 · 0 评论 -
快速用angular+ng-zorro创建项目
创建项目选择带路由ng new abccd abcng add ng-zorro-antd创建完项目,创建两个组件ng g c cmp1ng g c cmp2在appcomponent中添加 <router-outlet></router-outlet>在app-routing.module.ts中添加路由const routes: Routes = [ { path: '', redirectTo: 'cmp1', pathMatch: 'full' }原创 2020-11-11 19:57:31 · 667 阅读 · 1 评论