Comments (14)
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.
Eagerly waiting for ng4.
from aspnetcore-angular-universal.
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.
from aspnetcore-angular-universal.
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.
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.
We are trying to use your template with Material2 as well. Waiting for the example app.
from aspnetcore-angular-universal.
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.
Waiting on angular/components#308
from aspnetcore-angular-universal.
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.
Good idea, I'll add a section to the readme to point it out! @Mahbub-A-Rob
from aspnetcore-angular-universal.
@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.
@MarkPieszak Thank you for the link. I will check it out.
from aspnetcore-angular-universal.
It seem that material 2.0.0 stable version would fully support the angular/platform-server
from aspnetcore-angular-universal.
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)
- How do I import additional SCSS from new node modules?
- How to set image paths correctly HOT 1
- HTTPS + IIS
- Support Angular 8.0 HOT 6
- Linux/Apache/Nginx hosting and default index.html
- Production Build Problem: Cannot Find Name: Required HOT 3
- Assets and Styles type of behavior
- Adding mime types produces 404 HOT 1
- Uncaught ReferenceError: prebootInitFn is not defined HOT 2
- Build crashing on "Mondays" (Windows)....
- Template is extremely slow
- Azure Devops builds failing - Javascript Heap out of memory HOT 9
- Does prerendering actually prerender at compile-time or only at runtime? HOT 1
- Feature 'async main' is not available in C# 7.0. Please use language version 7.1 or greater. [C:\temp\aspnetcore-angular-universal-master\Asp2017.csproj]
- cannot set breakpoints and debug the client source codes one line by one line correctly
- lazy loading library (ng-packagr) Can't resolve ngfactory.js
- asp.net core 3.1 HOT 6
- Expo-cli package error
- npm ERR! code ELOCKVERIFY
- Enable Angular universal in asp net core web api project HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from aspnetcore-angular-universal.