How to create custom input with ngModel usage

2020-03-23
阅读 3 分钟
1.5k
Override some functions of native input, and update model value inside the writeValue method {代码...}

Create sinle-spa with angular

2020-03-09
阅读 5 分钟
2.9k
c. config routing c1. Add providers: [{ provide: APP_BASE_HREF, useValue: '/' }] and { path: '**',component: EmptyRouteComponent } to app-routing.module.ts. The EmptyRouteComponent is part of the single-spa-angular schematics. This route makes sure that when single-spa is transitioning between ro...

Build Angular npm package and publish it to npm server

2020-03-06
阅读 4 分钟
1.7k
Edit package.jsona. add "$schema":"./node_modules/ng-packagr/package.schema.jsonb. edit build script: "build": "ng-packagr -p package.json"c. add postbuild to script: "postbuild": "node-sass ./src/styles.scss ./dist/ab-input.css"d. add publish to script: "publish": "npm publish dist"

Build frontend project into docker

2020-03-06
阅读 1 分钟
1.8k
create dockerfile1). config frontend project build2). config nginx create nginx/default.conf build dockersudo docker build -t imageName run dockerdocker run --rm -d -p80:80 imageName find docker host and portifconfig type docker host + post + frontendRoutePath in browser address bar, such as: [链...

Install Jenkins for Ubuntu operation system

2020-03-06
阅读 1 分钟
1.4k
wget -q -O - https://pkg.jenkins.io/debian-stable/jenkins.io.key | sudo apt-key add -