Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit 49abe02

Browse filesBrowse files
committed
[up] sample app to Angular 18 and ,NET 9
1 parent 5ded19f commit 49abe02
Copy full SHA for 49abe02

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.
Dismiss banner
Expand file treeCollapse file tree

45 files changed

+14383
-15056
lines changed
Open diff view settings
Collapse file

‎.vscode/launch.json‎

Copy file name to clipboardExpand all lines: .vscode/launch.json
+2-2Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
"type": "coreclr",
77
"request": "launch",
88
"preLaunchTask": "Build Angular Example",
9-
"program": "${workspaceFolder}/src/SampleApps/SampleApp.Angular/bin/Debug/net8.0/SampleApp.Angular.dll",
9+
"program": "${workspaceFolder}/src/SampleApps/SampleApp.Angular/bin/Debug/net9.0/SampleApp.Angular.dll",
1010
"cwd": "${workspaceFolder}/src/SampleApps/SampleApp.Angular/",
1111
"internalConsoleOptions": "openOnSessionStart",
1212
"serverReadyAction": {
@@ -23,7 +23,7 @@
2323
"type": "coreclr",
2424
"request": "launch",
2525
"preLaunchTask": "Build Angular Example",
26-
"program": "${workspaceFolder}/src/SampleApps/SampleApp.Angular/bin/Debug/net8.0/SampleApp.Angular.dll",
26+
"program": "${workspaceFolder}/src/SampleApps/SampleApp.Angular/bin/Debug/net9.0/SampleApp.Angular.dll",
2727
"cwd": "${workspaceFolder}/src/SampleApps/SampleApp.Angular/",
2828
"internalConsoleOptions": "openOnSessionStart",
2929
"serverReadyAction": {
Collapse file

‎src/SampleApps/SampleApp.Angular/ClientApp/.browserslistrc‎

Copy file name to clipboardExpand all lines: src/SampleApps/SampleApp.Angular/ClientApp/.browserslistrc
-17Lines changed: 0 additions & 17 deletions
This file was deleted.
Collapse file
+16-16Lines changed: 16 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,16 @@
1-
# Editor configuration, see https://editorconfig.org
2-
root = true
3-
4-
[*]
5-
charset = utf-8
6-
indent_style = space
7-
indent_size = 2
8-
insert_final_newline = true
9-
trim_trailing_whitespace = true
10-
11-
[*.ts]
12-
quote_type = single
13-
14-
[*.md]
15-
max_line_length = off
16-
trim_trailing_whitespace = false
1+
# Editor configuration, see https://editorconfig.org
2+
root = true
3+
4+
[*]
5+
charset = utf-8
6+
indent_style = space
7+
indent_size = 2
8+
insert_final_newline = true
9+
trim_trailing_whitespace = true
10+
11+
[*.ts]
12+
quote_type = single
13+
14+
[*.md]
15+
max_line_length = off
16+
trim_trailing_whitespace = false
Collapse file
+42-40Lines changed: 42 additions & 40 deletions
Original file line numberDiff line numberDiff line change
@@ -1,40 +1,42 @@
1-
# See http://help.github.com/ignore-files/ for more about ignoring files.
2-
3-
# compiled output
4-
/dist
5-
/dist-server
6-
/tmp
7-
/out-tsc
8-
9-
# dependencies
10-
/node_modules
11-
12-
# IDEs and editors
13-
/.idea
14-
.project
15-
.classpath
16-
.c9/
17-
*.launch
18-
.settings/
19-
*.sublime-workspace
20-
21-
# IDE - VSCode
22-
.vscode/*
23-
!.vscode/settings.json
24-
!.vscode/tasks.json
25-
!.vscode/launch.json
26-
!.vscode/extensions.json
27-
28-
# misc
29-
/.sass-cache
30-
/connect.lock
31-
/coverage
32-
/libpeerconnection.log
33-
npm-debug.log
34-
yarn-error.log
35-
testem.log
36-
/typings
37-
38-
# System Files
39-
.DS_Store
40-
Thumbs.db
1+
# See https://docs.github.com/get-started/getting-started-with-git/ignoring-files for more about ignoring files.
2+
3+
# Compiled output
4+
/dist
5+
/tmp
6+
/out-tsc
7+
/bazel-out
8+
9+
# Node
10+
/node_modules
11+
npm-debug.log
12+
yarn-error.log
13+
14+
# IDEs and editors
15+
.idea/
16+
.project
17+
.classpath
18+
.c9/
19+
*.launch
20+
.settings/
21+
*.sublime-workspace
22+
23+
# Visual Studio Code
24+
.vscode/*
25+
!.vscode/settings.json
26+
!.vscode/tasks.json
27+
!.vscode/launch.json
28+
!.vscode/extensions.json
29+
.history/*
30+
31+
# Miscellaneous
32+
/.angular/cache
33+
.sass-cache/
34+
/connect.lock
35+
/coverage
36+
/libpeerconnection.log
37+
testem.log
38+
/typings
39+
40+
# System files
41+
.DS_Store
42+
Thumbs.db
Collapse file
+22Lines changed: 22 additions & 0 deletions
  • Display the source diff
  • Display the rich diff
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
This file explains how Visual Studio created the project.
2+
3+
The following tools were used to generate this project:
4+
- Angular CLI (ng)
5+
6+
The following steps were used to generate this project:
7+
- Create Angular project with ng: `ng new sampleapp.angular --defaults --skip-install --skip-git --no-standalone `.
8+
- Add `proxy.conf.js` to proxy calls to the backend ASP.NET server.
9+
- Add `aspnetcore-https.js` script to install https certs.
10+
- Update `package.json` to call `aspnetcore-https.js` and serve with https.
11+
- Update `angular.json` to point to `proxy.conf.js`.
12+
- Update `app.component.ts` component to fetch and display weather information.
13+
- Modify `app.component.spec.ts` with updated tests.
14+
- Update `app.module.ts` to import the HttpClientModule.
15+
- Update package.json to add `jest-editor-support`.
16+
- Update package.json to add `run-script-os`.
17+
- Add `karma.conf.js` for unit tests.
18+
- Update `angular.json` to point to `karma.conf.js`.
19+
- Add project to solution.
20+
- Update proxy endpoint to be the backend server endpoint.
21+
- Add project to the startup projects list.
22+
- Write this file.
Collapse file

‎src/SampleApps/SampleApp.Angular/ClientApp/README.md‎

Copy file name to clipboard
100644100755
+27-27Lines changed: 27 additions & 27 deletions
  • Display the source diff
  • Display the rich diff
Original file line numberDiff line numberDiff line change
@@ -1,27 +1,27 @@
1-
# SampleApp.Angular
2-
3-
This project was generated with [Angular CLI](https://github.com/angular/angular-cli) version 12.0.2.
4-
5-
## Development server
6-
7-
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.
8-
9-
## Code scaffolding
10-
11-
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`.
12-
13-
## Build
14-
15-
Run `ng build` to build the project. The build artifacts will be stored in the `dist/` directory.
16-
17-
## Running unit tests
18-
19-
Run `ng test` to execute the unit tests via [Karma](https://karma-runner.github.io).
20-
21-
## Running end-to-end tests
22-
23-
Run `ng e2e` to execute the end-to-end tests via a platform of your choice. To use this command, you need to first add a package that implements end-to-end testing capabilities.
24-
25-
## Further help
26-
27-
To get more help on the Angular CLI use `ng help` or go check out the [Angular CLI README](https://github.com/angular/angular-cli/blob/master/README.md).
1+
# SampleApp.Angular
2+
3+
This project was generated with [Angular CLI](https://github.com/angular/angular-cli) version 18.0.2.
4+
5+
## Development server
6+
7+
Run `ng serve` for a dev server. Navigate to `https://localhost:10900/`. The application will automatically reload if you change any of the source files.
8+
9+
## Code scaffolding
10+
11+
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`.
12+
13+
## Build
14+
15+
Run `ng build` to build the project. The build artifacts will be stored in the `dist/` directory.
16+
17+
## Running unit tests
18+
19+
Run `ng test` to execute the unit tests via [Karma](https://karma-runner.github.io).
20+
21+
## Running end-to-end tests
22+
23+
Run `ng e2e` to execute the end-to-end tests via a platform of your choice. To use this command, you need to first add a package that implements end-to-end testing capabilities.
24+
25+
## Further help
26+
27+
To get more help on the Angular CLI use `ng help` or go check out the [Angular CLI Overview and Command Reference](https://angular.dev/tools/cli) page.

0 commit comments

Comments
0 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.