Aspnetcore-angular-universal: Angular Material support

Created on 28 Mar 2018  路  6Comments  路  Source: TrilonIO/aspnetcore-angular-universal

Hello,

I forked the repo and tried to add Angular Material into the mix but I got he exception about window is not defined. Has anyone here already been there?

Any tip appreciated.

FAQ

Most helpful comment

yeah, it works now, but it's strange to me, because I added it there because it was not working in a first place. But It was probably not synced or something was cached or whatever. I will try to migrate my whole app and see how far I can get.

All 6 comments

I'm in the process of using this with Angular Material
Haven't had any exceptions about window (yet).

What Angular Components are you trying to use?

This is my fork - there is only one commit in master

https://github.com/vmachacek/aspnetcore-angular2-universal

You can see I added checkbox to the shared module (client and server), and than it blew up.

I would try to remove what you added to the ClientApp/boot.server.ts

yeah, it works now, but it's strange to me, because I added it there because it was not working in a first place. But It was probably not synced or something was cached or whatever. I will try to migrate my whole app and see how far I can get.

Glad you got it working! I'll close this out for now :+1:

yes, It was my own stupidity, it turned out to be xcomponent part of the paypal-checkout npm package. Once I removed that and shuffled some modules around I made it work.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

pjmagee picture pjmagee  路  17Comments

consigliory picture consigliory  路  18Comments

jrmcdona picture jrmcdona  路  20Comments

georgiosd picture georgiosd  路  26Comments

Gaulomatic picture Gaulomatic  路  26Comments