This project was generated with Angular CLI version 7.1.1.
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.
In order for you to get this code working in CodePen, please follow the below steps:
-
Run
ng build --prod
this will enable a production build and all the build artifacts are stored in thedist/angular-csa-information
directory. -
Navigate to CodePen.io - if you have an account already create a new project with the Basic HTML5 Structure.
-
Once the new project is created you want to just ensure that the
index.html
file is the only file that exists. Refer to the screenshot below: -
Previously in step 1, the result entails files that would reside in the folder
dist/angular-csa-information
directory. The directory should like something like the screenshot below: -
From the screenshot in the previous step, select the following files:
index.html
, the CSS file, and the 3 JavaScript files. The file names for the CSS file and the JavaScripts are generated automatically by the CLI. Once you have selected the files, your screen should be similar to this: -
Drag the selected files in Step 5 above, into the CodePen.io editor. You will get a warning if you want to overwrite the
index.html
file because it already existed. If that happens, select the option that would allow you to overwrite theindex.html
file. Your screen should now look like this:A note that should be made - Anytime that changes are made to the app, and the command
ng build --prod
is executed, the names of the JavaScript and CSS files may change. -
(If you have a PRO level account) Towards the bottom of the CodePen.io editor you have a button that reads Deploy - this would allow you to have a fully functional website that is hosted by CodePen servers.