This project was generated with Angular CLI version 6.0.0.
記得要自行安裝
run
npm install
就可以取得專案的附加元件,如果不執行的話就無法build(ng serve --open
or ng build
)
Run ./build.sh
to build the project with .htaccess
. the build artifacts will be stored in the dist/
directory.
You need to input the path of RewriteBase in your .htaccess
for example, if you want to run your project at http://localhost/jinkela
, then the RewriteBase is /jinkela/
.
https://angular.io/guide/browser-support
將 src/polyfills.ts
裡面關於 IE 的部分註解拿掉就可以了,預設是沒有拿掉的
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.