Getting started with Angular2 and .NET core

I’ve found a few nice articles to get you started with Angular 2 and .NET core. Normally it would be somewhat of a hassle to get started, but this should provide you with some working samples.

  1. Fast track your Angular 2 and .NET Core
  2. Angular 2 and .NET Core – your first component
  3. Angular 2 and .NET Core – route directly to your components

This is a series of posts by Jon Hilton and uses the ASP.NET Core Template Pack  to get started.

4 thoughts on “Getting started with Angular2 and .NET core

  1. arc

    I’m getting this error while creating the application from VS 2015.

    —————————
    Microsoft Visual Studio
    —————————
    The following error occurred attempting to run the project model server process (1.0.3).

    Unable to start the process. No executable found matching command “dotnet-projectmodel-server”

    The project model server process provides intellisense, build, and reference information to Visual Studio and without it your experience will be very limited. Please try closing and reopening Visual Studio to see if that corrects the problem. Alternatively, check that the .NET Core SDK is properly installed.
    —————————
    OK
    —————————

  2. Bharati

    Hi!

    I am getting the following errors when I run anjularjs application in VS 2015. can you help on this issue. Installed ASP.NET Core Template Pack.

    ERROR in c:\VS2015Projects\Angular2Application1\Angular2Application1\node_modules\angular2-platform-node\node-location.d.ts
    (1,23): error TS2688: Cannot find type definition file for ‘node’.
    ERROR in c:\VS2015Projects\Angular2Application1\Angular2Application1\node_modules\angular2-platform-node\node-http.d.ts
    (5,22): error TS2415: Class ‘PreloadHttp’ incorrectly extends base class ‘Http’.
    Types of property ‘request’ are incompatible.
    Type ‘(url: string | Request, options?: RequestOptionsArgs) => Observable | EventEmitter’ is not assignable to type ‘(url: string | Request, options?: RequestOptionsArgs) => Observable’.
    Type ‘Observable | EventEmitter’ is not assignable to type ‘Observable’.
    Type ‘EventEmitter’ is not assignable to type ‘Observable’.
    Types of property ‘lift’ are incompatible.
    Type ‘(operator: Operator) => Observable’ is not assignable to type ‘(operator: Operator) => Observable’.
    Type ‘Observable’ is not assignable to type ‘Observable’.
    Type ‘Response’ is not assignable to type ‘R’.
    ERROR in c:\VS2015Projects\Angular2Application1\Angular2Application1\node_modules\rxjs\Subject.d.ts
    (16,22): error TS2415: Class ‘Subject’ incorrectly extends base class ‘Observable’.
    Types of property ‘lift’ are incompatible.
    Type ‘(operator: Operator) => Observable’ is not assignable to type ‘(operator: Operator) => Observable’.
    Type ‘Observable’ is not assignable to type ‘Observable’.
    Type ‘T’ is not assignable to type ‘R’.
    ERROR in ./ClientApp/app/components/navmenu/navmenu.component.ts
    (5,15): error TS2304: Cannot find name ‘require’.
    ERROR in ./ClientApp/app/components/navmenu/navmenu.component.ts
    (6,14): error TS2304: Cannot find name ‘require’.
    ERROR in ./ClientApp/app/components/home/home.component.ts
    (5,15): error TS2304: Cannot find name ‘require’.
    ERROR in ./ClientApp/app/components/fetchdata/fetchdata.component.ts
    (6,15): error TS2304: Cannot find name ‘require’.

    What could be the problem?

Leave a Comment

Het e-mailadres wordt niet gepubliceerd. Vereiste velden zijn gemarkeerd met *

*
*