Skip to content

Commit eec56c9

Browse files
committed
improve language
1 parent 1831b90 commit eec56c9

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

angular-kicks-in.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# \#2: 🅰 Angular kicks in
22

3-
Before we start to develop our app, let's look at the project and how Angular gets in the picture. Open the _todo-list_ folder in your IDE if you haven't done so already so we can inspect the files. All the relevant files at this stage on exist inside the `src` folder.
3+
Before we start to develop our app, let's look at the project and how Angular gets in the picture. Open the _todo-list_ folder in your IDE if you haven't done so already so we can inspect the files. All the relevant files at this stage exist inside the `src` folder.
44
Read more about the files generated by the Angular CLI in [Appendix 1: Generating a new project](https://ng-girls.gitbook.io/todo-list-tutorial/generating_a_new_project.html).
55

66
If you're really eager to start coding, you can skip this chapter and come back to it later to understand the project structure.
@@ -29,7 +29,7 @@ export class AppModule { }
2929

3030
The class `AppModule` is empty. It will get its functionality from Angular, which will identify its role by the code preceding this line, starting with `@NgModule({`.
3131

32-
Every entity in Angular \(NgModule, components, services, directives and pipes\) is just a **class with a decorator**. The decorator tells Angular what is the role of this class.
32+
Every entity in Angular \(NgModule, components, services, directives and pipes\) is just a **class with a decorator**. The decorator tells Angular what the role of this class is.
3333

3434
`@NgModule({...})` is a decorator. A decorator is just a function. When using it we put `@` before its name. This way it becomes a decorator: it looks at what is written right after the function call and receives it as an argument. Decorators usually do something with what they decorate. For example, in this case `NgModule` receives the `AppModule` class and adds to it methods and members that later on will be used by Angular. This way Angular will recognize that this class represents an NgModule.
3535

component.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# \#3: 📐 Component
22

3-
One approach in Web development \(and software development generally\) is component-based architecture. In the past years it has gained a lot of popularity. What is a component?
3+
One approach in Web development \(and software development in general\) is component-based architecture. In the past years it has gained a lot of popularity. What is a component?
44

55
In [Service-Oriented Architecture \(SOA\) vs. Component Based Architecture](http://petritsch.co.at/download/SOA_vs_component_based.pdf), Helmut Petritsch defines a component as follows:
66

@@ -124,7 +124,7 @@ template: ``,
124124
{% endcode-tabs-item %}
125125
{% endcode-tabs %}
126126

127-
Notice the **backticks** - **\`** - they are used to define Template Literals, which are new in JavaScript \(ES6\). This way you can define multi-line strings. They have another cool ability: to easily use JavaScript variables and expressions within the string \(with no relation to Angular binding expressions in the template\). Read about it in the [MDN documentation](https://developer.mozilla.org/en/docs/Web/JavaScript/Reference/Template_literals).
127+
Notice the **backticks** - **\`\`** - they are used to define Template Literals, which are new in JavaScript \(ES6\). This way you can define multi-line strings. They have another cool ability: to easily use JavaScript variables and expressions within the string \(with no relation to Angular binding expressions in the template\). Read about it in the [MDN documentation](https://developer.mozilla.org/en/docs/Web/JavaScript/Reference/Template_literals).
128128

129129
Make sure you replace `templateUrl` with `template`, and don't forget the comma at the end of the line.
130130

0 commit comments

Comments
 (0)