Samples for Angular
Samples are hosted under Azure Web App, link to application:
https://angular-101.azurewebsites.net/
To run the samples, first install all dependencies.
-
Make sure you have latest node installed. Nodejs
-
Got to project root directory, open a command line window and type:
npm install
-
After all dependencies are installed, on cmd, type the following to open in browser:
npm start
This application contains various samples made using Angular. Samples will be updated frequently, along with the new versions of Angular, either by adding new content or just upgrading the underlying framework.
Each sample contains a README.md
which provides some documentation on the purpose and the code, so either navigate individually to each sample or use the wiki.
To run the tests, open a cmd
window in project root directory and run the following command:
npm test
Watch the tests passing by getting some feedback from the cmd window.
Tests are found relative to each .ts
file, in a folder named specs
. There are two types,
- Isolated tests, which test components and other items in isolation
- Integrated tests, which test components and other items in an integrated test environment.
If you wish, you can contribute on the existing samples, or even introduce new, making this repo more rich, in order for other people to benefit from the code that lies here.
Please, try to follow the application structure, in which under samples
folder are all samples located, under each category, like Bindings
, Components
, etc., inside each there is the sub-category which is going to be explored. Itself contains an src
folder with all the code and a barrel (index.ts
) to expose its items.