This project was generated with Angular CLI version 8.3.18.
Run ng serve
for a dev server. Navigate to http://localhost:4200/
. The app will automatically reload if you change any of the source files.
Run ng generate component component-name
to generate a new component. You can also use ng generate directive|pipe|service|class|guard|interface|enum|module
.
Run ng build
to build the project. The build artifacts will be stored in the dist/
directory. Use the --prod
flag for a production build.
Run ng test
to execute the unit tests via Karma.
Run ng e2e
to execute the end-to-end tests via Protractor.
To get more help on the Angular CLI use ng help
or go check out the Angular CLI README.
npm install -g @angular/cli
ng new ngxi4-dynamic-service --createApplication=false
cd ./ngxi4-dynamic-service
ng g library ngxi4-dynamic-service --prefix=ngxi4 --entryFile=ngx-i4
ng g service services/Ngxi4Auth --project ngxi4-dynamic-service ng g service services/Ngxi4Common --project ngxi4-dynamic-service
export * from './lib/services/ngxi4-common.service';
npm i @ionic/angular
ng g component cards/Ngxi4CardDynamicForm --project ngxi4-dynamic-service
# Để xuất bản một phiên bản mới, phải sửa chuỗi `"version": "2.0.0"` tăng lên 1 version
# trong package.json của thư viện
ng build
cd dist/ngxi4-dynamic-service
npm publish
npm link
npm i ngxi4-dynamic-service@latest --save
npm link ngxi4-dynamic-service
npm link ngxi4-dynamic-service
"projects": { "app": { "architect": { "build": { "options": { "preserveSymlinks": true,
Tìm trong file: ./tsconfig.json và thêm dòng sau vào
{
"compilerOptions": {
// ...
// paths are relative to baseUrl
path.
"paths": {
"@angular/": [
"./node_modules/@angular/"
],
"@ionic/": [
"./node_modules/@ionic/"
]
}
}
}
npm login
# user - namedq@Shrthand login với user - namedq(namedq.pay@g)
# change version on package.json for publish
ng build
cd dist/ngxi4-dynamic-service
npm publish
cd ../../
npm i ngxi4-dynamic-service@latest --save
# Đồng thời cài đầy đủ các thư viện yêu cầu cho các card, dynmic như trong readme của thư viện