Skip to content

Commit d48d876

Browse files
authored
Merge pull request #28 from microsoftgraph/refresh-tutorial
Refresh tutorial
2 parents fd306f8 + dde5cf8 commit d48d876

File tree

171 files changed

+9653
-38432
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

171 files changed

+9653
-38432
lines changed

README.md

Lines changed: 2 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -8,19 +8,11 @@ In this lab you will create an Angular single-page application, configured with
88

99
- [Angular Microsoft Graph tutorial](https://docs.microsoft.com/graph/tutorials/angular)
1010

11-
## Demos
12-
13-
The [Demos](demos) directory in this repository contains copies of the project that correspond to completing individual sections of the tutorial. If you just want to demo a particular section of the tutorial, you can start with the version from the previous section.
14-
15-
- [01-create-app](demos/01-create-app): Completed [Create an Angular single-page app](https://docs.microsoft.com/graph/tutorials/angular?tutorial-step=1)
16-
- [02-add-aad-auth](demos/02-add-aad-auth): Completed [Add Azure AD authentication](https://docs.microsoft.com/graph/tutorials/angular?tutorial-step=3)
17-
- [03-add-msgraph](demos/03-add-msgraph): Completed [Get calendar data](https://docs.microsoft.com/graph/tutorials/angular?tutorial-step=4)
18-
1911
## Completed sample
2012

2113
If you just want the completed sample generated by following this lab, you can find it here.
2214

23-
- [Completed project](demos/03-add-msgraph)
15+
- [Completed project](demo)
2416

2517
## Watch the Module
2618

@@ -40,6 +32,7 @@ This module has been recorded and is available in the Office Development YouTube
4032

4133
| Version | Date | Comments |
4234
| ------- | ---------------- | ------------------------------------------------ |
35+
| 1.6 | March 16, 2020 | Updated sample to latest versions |
4336
| 1.5 | June 18, 2019 | Updated readme to refreshed screencast recording |
4437
| 1.4 | May 24, 2019 | 2019Q4 content refresh |
4538
| 1.3 | May 6, 2019 | Updated AAD app registration steps |
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44

55
To run the completed project in this folder, you need the following:
66

7-
- [Node.js](https://nodejs.org) installed on your development machine. If you do not have Node.js, visit the previous link for download options. (**Note:** This tutorial was written with Node version 10.7.0. The steps in this guide may work with other versions, but that has not been tested.)
7+
- [Node.js](https://nodejs.org) installed on your development machine. If you do not have Node.js, visit the previous link for download options. (**Note:** This tutorial was written with Node version 12.16.1. The steps in this guide may work with other versions, but that has not been tested.)
88
- [Angular CLI](https://cli.angular.io/) installed on your development machine.
99
- Either a personal Microsoft account with a mailbox on Outlook.com, or a Microsoft work or school account.
1010

File renamed without changes.
File renamed without changes.

demos/01-create-app/graph-tutorial/README.md renamed to demo/graph-tutorial/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# GraphTutorial
22

3-
This project was generated with [Angular CLI](https://github.com/angular/angular-cli) version 8.3.20.
3+
This project was generated with [Angular CLI](https://github.com/angular/angular-cli) version 9.0.6.
44

55
## Development server
66

demos/03-add-msgraph/graph-tutorial/angular.json renamed to demo/graph-tutorial/angular.json

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"$schema": "./node_modules/@angular/cli/lib/config/schema.json",
3-
"version": 1,
3+
"version": 1,
44
"newProjectRoot": "projects",
55
"projects": {
66
"graph-tutorial": {
@@ -18,7 +18,7 @@
1818
"main": "src/main.ts",
1919
"polyfills": "src/polyfills.ts",
2020
"tsConfig": "tsconfig.app.json",
21-
"aot": false,
21+
"aot": true,
2222
"assets": [
2323
"src/favicon.ico",
2424
"src/assets"
@@ -41,7 +41,6 @@
4141
"sourceMap": false,
4242
"extractCss": true,
4343
"namedChunks": false,
44-
"aot": true,
4544
"extractLicenses": true,
4645
"vendorChunk": false,
4746
"buildOptimizer": true,
@@ -122,4 +121,4 @@
122121
}
123122
}},
124123
"defaultProject": "graph-tutorial"
125-
}
124+
}
File renamed without changes.
File renamed without changes.
File renamed without changes.
Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
11
import { browser, by, element } from 'protractor';
22

33
export class AppPage {
4-
navigateTo() {
5-
return browser.get(browser.baseUrl) as Promise<any>;
4+
navigateTo(): Promise<unknown> {
5+
return browser.get(browser.baseUrl) as Promise<unknown>;
66
}
77

8-
getTitleText() {
8+
getTitleText(): Promise<string> {
99
return element(by.css('app-root .content span')).getText() as Promise<string>;
1010
}
1111
}

0 commit comments

Comments
 (0)