https://github.com/angular/angular
Raw File
Tip revision: 3988ebf432ec33a7bf7126c7e9ad09d69d0c2501 authored by Ben Lesh on 19 September 2018, 21:07:10 UTC
release: cut the v6.1.8 release
Tip revision: 3988ebf
README.md
# API Examples

This folder contains small example apps that get in-lined into our API docs.
Each example contains tests for application behavior (as opposed to testing Angular's
behavior) just like an Angular application developer would write.

# Running the examples

```
# # execute the following command only when framework code changes
./build.sh

# run when test change
./packages/examples/build.sh  

# start server
$(npm bin)/gulp serve-examples
```

navigate to [http://localhost:8001](http://localhost:8001)

# Running the tests

```
 # run only when framework code changes
./build.sh

# run to compile tests and run them
./packages/examples/test.sh
```

NOTE: sometimes the http server does not exit properly and it retains the `8001` port.
 in such a case you can use `lsof -i:8001` to see which process it is and then use `kill` 
 to remove it. (Or in single command: `lsof -i:8001 -t | xargs kill`)
back to top