Git Product home page Git Product logo

Comments (14)

MarkPieszak avatar MarkPieszak commented on May 22, 2024 2

We're about to release ng4 in March sometime, so hopefully after that Material can make the necessary changes and will be able to work without any problems at all 👍

from aspnetcore-angular-universal.

mah1212 avatar mah1212 commented on May 22, 2024 2

Eagerly waiting for ng4.

from aspnetcore-angular-universal.

MarkPieszak avatar MarkPieszak commented on May 22, 2024 1

So it looks like Material2 doesn't work with Universal or Webworkers at the moment, they're still in Alpha so I'm not sure exactly when we'll be in sync, so we'll have to delay that Integration unfortunately!

Although if you shut off server-side rendering for now, you'll be able to use Material2.
You can just remove the asp-prerender tags in Views/Home/Index.cshtml to disable it.

https://github.com/MarkPieszak/aspnetcore-angular2-universal/blob/master/Views/Home/Index.cshtml#L5-L6

from aspnetcore-angular-universal.

MarkPieszak avatar MarkPieszak commented on May 22, 2024 1

Added the note! I'll close this out for now. I'll let you know when Material gets full Universal support 👍

from aspnetcore-angular-universal.

MarkPieszak avatar MarkPieszak commented on May 22, 2024

Sure, not a problem.
I wasn't sure whether to go bootstrap or material for the Starter, but I can showcase how to set that up. There's a few gotchas with Universal & Material.

from aspnetcore-angular-universal.

mah1212 avatar mah1212 commented on May 22, 2024

We are trying to use your template with Material2 as well. Waiting for the example app.

from aspnetcore-angular-universal.

MarkPieszak avatar MarkPieszak commented on May 22, 2024

Hey @mahbub-a-rob, I spoke with a few Material devs the other day and it's on their priority list especially for their 1.0 release but at this moment it doesn't work right out of the box. I believe there might be some very hacks ways to get Material to work when server rendering, but they would keep changing release to release. :(

For the time being, would it be fine to shut off server side rendering and use Material? That way you could at least get going with the App itself, while the Universal integration gets finalized for it.

from aspnetcore-angular-universal.

MarkPieszak avatar MarkPieszak commented on May 22, 2024

Waiting on angular/components#308

from aspnetcore-angular-universal.

mah1212 avatar mah1212 commented on May 22, 2024

Hey, @MarkPieszak, yeah, sure, as we have no other option right now. In that case, I guess, it would be better to provide an example for the users on "How to use Material2 in this app" until we get the facility with server side rendering.

from aspnetcore-angular-universal.

MarkPieszak avatar MarkPieszak commented on May 22, 2024

Good idea, I'll add a section to the readme to point it out! @Mahbub-A-Rob

from aspnetcore-angular-universal.

MarkPieszak avatar MarkPieszak commented on May 22, 2024

@Mahbub-A-Rob Here's a hack/workaround to get Material up and running with Universal in the meantime, if you still needed it: angular/components#308 (comment)

Putting it here in case others need it as well.

from aspnetcore-angular-universal.

mah1212 avatar mah1212 commented on May 22, 2024

@MarkPieszak Thank you for the link. I will check it out.

from aspnetcore-angular-universal.

ElderJames avatar ElderJames commented on May 22, 2024

It seem that material 2.0.0 stable version would fully support the angular/platform-server

from aspnetcore-angular-universal.

odahcam avatar odahcam commented on May 22, 2024

So what can be done now (with Ng 5 + NgMaterial 2 or 5), the external bug still exists? 😃

from aspnetcore-angular-universal.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.