Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Updates to "Using Angular 2 with ASP.NET Core" #198

Open
wants to merge 3 commits into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ Right click on `wwwroot` folder, `Add New Item` and create the `index.html` file

```

For ASP.NET Core to serve static files, we need to add StaticFiles middleware in the **Configure** method of the `Startup.cs` page. Ensure that packages are restored properly.
For ASP.NET Core to serve static files, we need to add StaticFiles middleware in the **Configure** method of the `Startup.cs` page. Ensure the NuGet package `Microsoft.AspNetCore.StaticFiles` is installed that packages are restored properly.

`project.json` is redesigned to make it better, we have StaticFiles middleware to serve static assets like HTML, JS files etc.
```C#
Expand Down Expand Up @@ -66,7 +66,7 @@ public void Configure(IApplicationBuilder app)
"imports": [
"dotnet5.6",
"portable-net45+win8"
]
]serv
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@mrpmorris Is this valid JSON or a typo?

}
},

Expand Down