Aspnetcore: Update to Angular 8

Created on 21 Aug 2018  路  15Comments  路  Source: dotnet/aspnetcore

It looks like Angular 7 is scheduled to be released in Sept/Oct of this year: https://angular.io/guide/releases#release-schedule

Done area-mvc enhancement

Most helpful comment

Looks like Angular 8 is going to be released before 3.0 ships, so we'll wait for that instead and skip update to Angular 7.
I'm updating the title to reuse this issue for that purpose.

All 15 comments

any ETA for this ?

Also waiting for this, a rough ETA would be appreciated

@nokturnal it seems it will be released with DotNetCore 3.0 as we see it's in the preview atm

@Korigoth though not ideal, I appreciate the feedback. Thanks

The problem is that March/April 2019 will be the release of Angular 8.

It seems you are always 1 version behind.

With the current template (on .net 2.2) I got it working with Angular7 + SSR.

The only thing I can't get working for SSR is optimization or bundling together (both on server), if I enable one of them it works, together they don't (cause i don't want to copy all node_modules for SSR).

NOTE

  • I had to do several changes/fixes in order to get SSR workin (even for Angular 6)

SSR Error with optimization + bundling

```
An unhandled exception occurred while processing the request.
NodeInvocationException: StaticInjectorError[InjectionToken Application Initializer -> InjectionToken DocumentToken]:
StaticInjectorError(Platform: core)[InjectionToken Application Initializer -> InjectionToken DocumentToken]:
Right-hand side of 'instanceof' is not an object
TypeError: StaticInjectorError[InjectionToken Application Initializer -> InjectionToken DocumentToken]:
StaticInjectorError(Platform: core)[InjectionToken Application Initializer -> InjectionToken DocumentToken]:
Right-hand side of 'instanceof' is not an object
at insertElement (C:devgitCosmowrenchSketch7.CosmowrenchClientAppdist-servermain.js:1:2597704)
at insertHTMLElement (C:devgitCosmowrenchSketch7.CosmowrenchClientAppdist-servermain.js:1:2597428)
at before_head_mode (C:devgitCosmowrenchSketch7.CosmowrenchClientAppdist-servermain.js:1:2635408)
at HTMLParser.htmlparser.insertToken (C:devgitCosmowrenchSketch7.CosmowrenchClientAppdist-servermain.js:1:2596464)
````

Just if anyone wants to see the repo, feel free to check it out on

https://github.com/sketch7/dotnet-ngx-sample 鉂わ笍

Looks like Angular 8 is going to be released before 3.0 ships, so we'll wait for that instead and skip update to Angular 7.
I'm updating the title to reuse this issue for that purpose.

I manually upgraded the angular app that runs under asp.net core 2.2 to 8.0 Preview. One major problem that I came across was that the app generates an error related to SSL quite often in Chrome, but not on edge. I posted a question in stackoverflow regarding this.

Looks like Angular 8 was released end of May, I can add it

Moving this to preview 8, as we're blocked on security review.

Is ther any update on my PR https://github.com/aspnet/AspNetCore/pull/10616 ?

@ngohungphuc we're working through some security-related aspects of this, before we can take it.

... And what about Angular 9 with Ivy?

And what about Angular 9 with Ivy?

@blogcraft https://github.com/aspnet/AspNetCore/issues/14076

Was this page helpful?
0 / 5 - 0 ratings