Skip to content

Commit aecb010

Browse files
committed
changes
1 parent 0fccda7 commit aecb010

4 files changed

Lines changed: 5 additions & 6 deletions

File tree

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1 +1,2 @@
1+
2. A data table with all the elements
12
A data table with CRUD operations is very useful (in our case we only view details or delete an item, but they illustrate two important things: the details view shows how to navigate and consume a parametric route, the delete action shows how to invoke service operations over the loaded data - this means that the component is reusable and when the data comes with an API, only the service will need it’s implementation changed)
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
A details page that reads a route paramenter and displays the details of the element.
1+
3. A details page that reads a route paramenter and displays the details of the element.
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1 +1,2 @@
1+
1. A leader board with the top 3 elements
12
A leader board can be understood as "the most popular items in a set", "the latest updated items", "you favorite items" etc.

angular-mock-service/index.asciidoc

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -29,14 +29,11 @@ When testing a component with service dependencies, the best practice is mocking
2929

3030
Here, we will go through a angular-mock-service sample app.
3131

32-
The app presents 3 pages as follows:
32+
3333
[step]
3434
--
35-
displayContent("A leader board with the top 3 elements", [{ "file": "files/leaderboard.md" }, {"image": "images/leaderboard.png"}])
36-
37-
displayContent("A data table with all the elements", [{ "file": "files/datatable.md" }, {"image": "images/data-table.png"}])
35+
displayContent("The app presents 3 pages as follows: ", [{ "file": "files/leaderboard.md" }, {"image": "images/leaderboard.png"}, { "file": "files/datatable.md" }, {"image": "images/data-table.png"}, { "file": "files/details.md" }, {"image": "images/detail.png"}])
3836

39-
displayContent("A details page", [{ "file": "files/details.md" }, {"image": "images/detail.png"}])
4037
--
4138

4239
First, we have to clone the Devon4ng repository to access Angular Mock Service Sample.

0 commit comments

Comments
 (0)