diff --git a/docs/angularcommands.md b/docs/angularcommands.md new file mode 100644 index 0000000..9440a8f --- /dev/null +++ b/docs/angularcommands.md @@ -0,0 +1,52 @@ +# Angular CLI + +## requirements + +Install nodejs, npm, angular-cli and @angular-devkit/build-angular + +```bash +sudo apt install nodejs npm +sudo npm install -g @angular/cli +sudo npm install --save-dev @angular-devkit/build-angular +``` + +Create first project +```bash +ng new my-first-app --no-strict +``` + +Select `N` for no routing and normal `CSS`. + +Navigate to the project and spinn up the dev server +```bash +cd my-fisrt-app +gn serve +``` + +## NgTemplate + +This project was generated with [Angular CLI](https://github.com/angular/angular-cli) version 12.0.0. + +### Development server + +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. + +### Code scaffolding + +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`. + +### Build + +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. + +### Running unit tests + +Run `ng test` to execute the unit tests via [Karma](https://karma-runner.github.io). + +### Running end-to-end tests + +Run `ng e2e` to execute the end-to-end tests via a platform of your choice. + +### Further help + +To get more help on the Angular CLI use `ng help` or go check out the [Angular CLI Overview and Command Reference](https://angular.io/cli) page. \ No newline at end of file diff --git a/docs/angularuniversal.md b/docs/angularuniversal.md new file mode 100644 index 0000000..e69de29 diff --git a/docs/animations.md b/docs/animations.md new file mode 100644 index 0000000..e69de29 diff --git a/docs/authentication.md b/docs/authentication.md new file mode 100644 index 0000000..e69de29 diff --git a/docs/component.md b/docs/component.md new file mode 100644 index 0000000..e69de29 diff --git a/docs/databinding.md b/docs/databinding.md new file mode 100644 index 0000000..e69de29 diff --git a/docs/deployment.md b/docs/deployment.md new file mode 100644 index 0000000..e69de29 diff --git a/docs/dipendencyinjection.md b/docs/dipendencyinjection.md new file mode 100644 index 0000000..e69de29 diff --git a/docs/directives.md b/docs/directives.md new file mode 100644 index 0000000..e69de29 diff --git a/docs/dynamiccomponents.md b/docs/dynamiccomponents.md new file mode 100644 index 0000000..e69de29 diff --git a/docs/forms.md b/docs/forms.md new file mode 100644 index 0000000..e69de29 diff --git a/docs/http.md b/docs/http.md new file mode 100644 index 0000000..e69de29 diff --git a/docs/ngmodules.md b/docs/ngmodules.md new file mode 100644 index 0000000..e69de29 diff --git a/docs/ngrx.md b/docs/ngrx.md new file mode 100644 index 0000000..e69de29 diff --git a/docs/observables.md b/docs/observables.md new file mode 100644 index 0000000..e69de29 diff --git a/docs/optimization.md b/docs/optimization.md new file mode 100644 index 0000000..e69de29 diff --git a/docs/pipes.md b/docs/pipes.md new file mode 100644 index 0000000..e69de29 diff --git a/docs/routing.md b/docs/routing.md new file mode 100644 index 0000000..e69de29 diff --git a/docs/services.md b/docs/services.md new file mode 100644 index 0000000..e69de29 diff --git a/docs/testing.md b/docs/testing.md new file mode 100644 index 0000000..e69de29 diff --git a/docs/thebasic.md b/docs/thebasic.md new file mode 100644 index 0000000..bc10133 --- /dev/null +++ b/docs/thebasic.md @@ -0,0 +1,19 @@ +## The Basic + +Angular serves the **index.html** in the `src` directory and loads the components from the `src/app` directory. + +The scafolding creates a root-component which is loaded into the index.html on the ``-Tag. + +In the `@Component` we find a `selector` with the value of ``. With this selector, Angular is able to replace in the index.thml on the ``-Tag with the content in the app.component.html. + +When the app is builded, the angular cli will inject at the bottom a bundle of *.js files which is needet to run the app. + +`main.ts` is the file which will be executet at the beginning. + + +ngmodule
+component + + +Angular's main ideas is to build components to build an app. Each Component has it's own template (html), maybe it's own style (CSS) and more important it's own business logic. +Components can be reused in multiple parts or the application. \ No newline at end of file diff --git a/img/component.png b/img/component.png new file mode 100644 index 0000000..1e0a7f7 Binary files /dev/null and b/img/component.png differ diff --git a/img/ngmodule.png b/img/ngmodule.png new file mode 100644 index 0000000..eb310b9 Binary files /dev/null and b/img/ngmodule.png differ