Skip to content
This repository was archived by the owner on Apr 8, 2020. It is now read-only.

Commit 85e59ef

Browse files
Rename Angular2Spa to AngularSpa, plus rephrase "Angular 2" as "Angular" in many places
1 parent a74b7ae commit 85e59ef

Some content is hidden

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

50 files changed

+41
-41
lines changed

JavaScriptServices.sln

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "templates", "templates", "{
4646
EndProject
4747
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "KnockoutSpa", "templates\KnockoutSpa\KnockoutSpa.csproj", "{F60248B1-940E-43FB-BEA0-589362AA6320}"
4848
EndProject
49-
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "Angular2Spa", "templates\Angular2Spa\Angular2Spa.csproj", "{4D4B84C9-13F7-40CA-B05A-DC98FD6019AC}"
49+
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "AngularSpa", "templates\AngularSpa\AngularSpa.csproj", "{4D4B84C9-13F7-40CA-B05A-DC98FD6019AC}"
5050
EndProject
5151
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "AureliaSpa", "templates\AureliaSpa\AureliaSpa.csproj", "{4D57B6E1-7141-48ED-959E-872BDD4A2F72}"
5252
EndProject

README.md

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ This project is part of ASP.NET Core. You can find samples, documentation and ge
88

99
`JavaScriptServices` is a set of client-side technologies for ASP.NET Core. It provides infrastructure that you'll find useful if you:
1010

11-
- Use Angular 2 / React / Vue / Aurelia / Knockout / etc.
11+
- Use Angular / React / Vue / Aurelia / Knockout / etc.
1212
- Build your client-side resources using Webpack.
1313
- Execute JavaScript on the server at runtime.
1414

@@ -31,7 +31,7 @@ It's cross-platform (Windows, Linux, or macOS) and works with .NET Core 1.0.1 or
3131

3232
## Creating new applications
3333

34-
If you want to build a brand-new ASP.NET Core app that uses Angular 2 / React / Knockout on the client, consider starting with the `aspnetcore-spa` generator. This lets you choose your client-side framework. It generates a starting point that includes applicable features such as Webpack dev middleware, server-side prerendering, and efficient production builds. It's much easier than configuring everything to work together manually!
34+
If you want to build a brand-new ASP.NET Core app that uses Angular / React / Knockout on the client, consider starting with the `aspnetcore-spa` generator. This lets you choose your client-side framework. It generates a starting point that includes applicable features such as Webpack dev middleware, server-side prerendering, and efficient production builds. It's much easier than configuring everything to work together manually!
3535

3636
To do this, install Yeoman and these generator templates:
3737

@@ -57,10 +57,10 @@ If you have an existing ASP.NET Core application, or if you just want to use the
5757
* Most applications developers don't need to use this directly, but you can do so if you want to implement your own functionality that involves calling Node.js code from .NET at runtime.
5858
* Find [documentation and usage examples here](https://github.com/aspnet/JavaScriptServices/tree/dev/src/Microsoft.AspNetCore.NodeServices#microsoftaspnetcorenodeservices).
5959
* `Microsoft.AspNetCore.SpaServices`
60-
* This provides infrastructure that's generally useful when building Single Page Applications (SPAs) with technologies such as Angular 2 or React (for example, server-side prerendering and webpack middleware). Internally, it uses the `NodeServices` package to implement its features.
60+
* This provides infrastructure that's generally useful when building Single Page Applications (SPAs) with technologies such as Angular or React (for example, server-side prerendering and webpack middleware). Internally, it uses the `NodeServices` package to implement its features.
6161
* Find [documentation and usage examples here](https://github.com/aspnet/JavaScriptServices/tree/dev/src/Microsoft.AspNetCore.SpaServices#microsoftaspnetcorespaservices).
6262
* `Microsoft.AspNetCore.AngularServices`
63-
* This builds on the `SpaServices` package and includes features specific to Angular 2. Currently, this includes validation helpers.
63+
* This builds on the `SpaServices` package and includes features specific to Angular. Currently, this includes validation helpers.
6464
* The code is [here](https://github.com/aspnet/JavaScriptServices/tree/dev/src/Microsoft.AspNetCore.AngularServices). You'll find a usage example for [the validation helper here](https://github.com/aspnet/JavaScriptServices/blob/dev/samples/angular/MusicStore/wwwroot/ng-app/components/admin/album-edit/album-edit.ts).
6565

6666
There was previously a `Microsoft.AspNetCore.ReactServices` but this is not currently needed - all applicable functionality is in `Microsoft.AspNetCore.SpaServices`, because it's sufficiently general. We might add a new `Microsoft.AspNetCore.ReactServices` package in the future if new React-specific requirements emerge.
@@ -73,7 +73,7 @@ Inside this repo, [the `templates` directory](https://github.com/aspnet/JavaScri
7373

7474
The [`samples` directory](https://github.com/aspnet/JavaScriptServices/tree/dev/samples) contains examples of:
7575

76-
- Using the JavaScript services family of packages with Angular 2 and React.
76+
- Using the JavaScript services family of packages with Angular and React.
7777
- A standalone `NodeServices` usage for runtime code transpilation and image processing.
7878

7979
**To run the samples:**
@@ -82,7 +82,7 @@ The [`samples` directory](https://github.com/aspnet/JavaScriptServices/tree/dev/
8282
* At the repo's root directory (the one containing `src`, `samples`, etc.), run `dotnet restore`
8383
* Change directory to the sample you want to run (for example, `cd samples/angular/MusicStore`)
8484
* Restore Node dependencies by running `npm install`
85-
* If you're trying to run the Angular 2 "Music Store" sample, then also run `gulp` (which you need to have installed globally). None of the other samples require this.
85+
* If you're trying to run the Angular "Music Store" sample, then also run `gulp` (which you need to have installed globally). None of the other samples require this.
8686
* Run the application (`dotnet run`)
8787
* Browse to [http://localhost:5000](http://localhost:5000)
8888

@@ -92,7 +92,7 @@ If you're interested in contributing to the various packages, samples, and proje
9292

9393
* Clone the repo
9494
* Run `dotnet restore` at the repo root dir
95-
* Go to whatever sample or template you want to run (for example, `cd templates/Angular2Spa`)
95+
* Go to whatever sample or template you want to run (for example, `cd templates/AngularSpa`)
9696
* Restore NPM dependencies (run `npm install`)
9797
* If the sample/template you're trying to run has a file called `webpack.config.vendor.js` at its root, run `webpack --config webpack.config.vendor.js`. It it has a file called `webpack.config.js`, run `webpack` (no args). You might need to install webpack first, by running `npm install -g webpack`.
9898
* Launch it (`dotnet run`)

samples/angular/MusicStore/wwwroot/ng-app/components/admin/album-delete-prompt/album-delete-prompt.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ export class AlbumDeletePrompt {
1414
public show(album: models.Album) {
1515
this.album = album;
1616

17-
// Consider rewriting this using Angular 2's "Renderer" API so as to avoid direct DOM access
17+
// Consider rewriting this using Angular's "Renderer" API so as to avoid direct DOM access
1818
(<any>window).jQuery(".modal", this._elementRef.nativeElement).modal();
1919
}
2020
}

samples/misc/Webpack/Clientside/PrerenderingSample.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,8 @@ export default function (params: any): Promise<{ html: string, globals?: any }>
22
return new Promise((resolve, reject) => {
33

44
// Here, you could put any logic that synchronously or asynchronously prerenders
5-
// your SPA components. For example, see the boot-server.ts files in the Angular2Spa
6-
// and ReactReduxSpa templates for ways to prerender Angular 2 and React components.
5+
// your SPA components. For example, see the boot-server.ts files in the AngularSpa
6+
// and ReactReduxSpa templates for ways to prerender Angular and React components.
77
//
88
// If you wanted, you could use a property on the 'params.data' object to specify
99
// which SPA component or template to render.

src/Microsoft.AspNetCore.AngularServices/Microsoft.AspNetCore.AngularServices.csproj

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
<Import Project="..\..\build\common.props" />
44

55
<PropertyGroup>
6-
<Description>Helpers for building Angular 2 applications on ASP.NET Core.</Description>
6+
<Description>Helpers for building Angular applications on ASP.NET Core.</Description>
77
<TargetFrameworks>net451;netstandard1.6</TargetFrameworks>
88
<PackageTags>aspnetcore;aspnetcoremvc;nodeservices</PackageTags>
99
<TypeScriptCompileBlocked>true</TypeScriptCompileBlocked>

src/Microsoft.AspNetCore.AngularServices/PrimeCacheHelper.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
namespace Microsoft.AspNetCore.AngularServices
1111
{
1212
/// <summary>
13-
/// Helpers for prepopulating Angular 2's 'http' service with data.
13+
/// Helpers for prepopulating Angular's 'http' service with data.
1414
/// </summary>
1515
public static class PrimeCacheHelper
1616
{

src/Microsoft.AspNetCore.NodeServices/README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ This NuGet package provides a fast and robust way to invoke Node.js code from a
1010
It is the underlying mechanism supporting the following packages:
1111

1212
* [`Microsoft.AspNetCore.SpaServices`](https://github.com/aspnet/JavaScriptServices/tree/dev/src/Microsoft.AspNetCore.SpaServices) - builds on NodeServices, adding functionality commonly used in Single Page Applications, such as server-side prerendering, webpack middleware, and integration between server-side and client-side routing.
13-
* [`Microsoft.AspNetCore.AngularServices`](https://github.com/aspnet/JavaScriptServices/tree/dev/src/Microsoft.AspNetCore.AngularServices) and [`Microsoft.AspNetCore.ReactServices`](https://github.com/aspnet/JavaScriptServices/tree/dev/src/Microsoft.AspNetCore.ReactServices) - these build on `SpaServices`, adding helpers specific to Angular 2 and React, such as cache priming and integrating server-side and client-side validation
13+
* [`Microsoft.AspNetCore.AngularServices`](https://github.com/aspnet/JavaScriptServices/tree/dev/src/Microsoft.AspNetCore.AngularServices) and [`Microsoft.AspNetCore.ReactServices`](https://github.com/aspnet/JavaScriptServices/tree/dev/src/Microsoft.AspNetCore.ReactServices) - these build on `SpaServices`, adding helpers specific to Angular and React, such as cache priming and integrating server-side and client-side validation
1414

1515
### Requirements
1616

@@ -32,7 +32,7 @@ For .NET Framework apps:
3232

3333
* `nuget install Microsoft.AspNetCore.NodeServices`
3434

35-
### Do you just want to build an ASP.NET Core app with Angular 2 / React / Knockout / etc.?
35+
### Do you just want to build an ASP.NET Core app with Angular / React / Knockout / etc.?
3636

3737
In that case, you don't need to use NodeServices directly (or install it manually). You can either:
3838

0 commit comments

Comments
 (0)