Comments (8)
Hey guys,
So sorry for so much respond time. Unfortunately, for now, we're not compatible at all with Angular Universal. We'll do our best to achieve this.
from mdb-angular-ui-kit.
Hello,
I have the same problem
from mdb-angular-ui-kit.
Hey guys
Sorry for so much responding time. I've got a fix for this problem. Please head to:
/free/navbars/navbar.component.ts and:
In constructor change type of renderer from Renderer to Renderer2
then find a line:
this.navbar.nativeElement.append(child)
and change it to
this.renderer.appendChild(this.navbar.nativeElement, child);
And now it should work fine.
Let me know if there are more problems.
Best Regards,
Damian
from mdb-angular-ui-kit.
@Bloodcast69 Thanks for your angular universal compatibility answer. you have just save me a lot of time :-).
from mdb-angular-ui-kit.
@kvincent3 we're now compatible with Angular Universal. Feel free to try it!
https://mdbootstrap.com/getting-started/angular-universal/
Best Regards,
Damian
from mdb-angular-ui-kit.
I'm using angular universal, and I followed this guid, but an error occured when I import MDBBootstrapModule.forRoot() to app.module.ts
ReferenceError: window is not defined
from mdb-angular-ui-kit.
also in your guid you didn't mention how to correctly use mdb after installing angular universal
@Bloodcast69
from mdb-angular-ui-kit.
Dear @xxyyzz2050
Please follow our Universal Guide carefully, and it will work. You have to add those lines to your server file, and it should work fine.
global['window'] = win; global['Node'] = win.Node; global['navigator'] = win.navigator; global['Event'] = win.Event; global['Event']['prototype'] = win.Event.prototype; global['document'] = win.document;
Please follow carefully our Universal guide, because this guide was tested few times, and we're sure that it works fine.
LINK: https://mdbootstrap.com/docs/angular/getting-started/angular-universal/
from mdb-angular-ui-kit.
Related Issues (20)
- How to use tool tip with custom html template and also be able to show/hide them in code ? HOT 3
- ERROR in Illegal State: referring to a type without a variable "name":"WavesDirective","members":[]} HOT 1
- mdbInput in mdbModal not getting cleared on this.demoBasic.hide(); HOT 3
- Angular 13 support HOT 3
- Hamburger animation doc not available for angular in mdb bootstrap 4 HOT 2
- Dropdown menu can't be navigated with arrow key HOT 2
- Cannot upgrade to Angular v14 due to package dependency on @angular/cdk v13 HOT 8
- Not working fade animation in tabs HOT 2
- Multilevel dropdown doc not available for MDBA4 HOT 1
- Accordion - Incorrect triggering of Events: itemShown, itemHidden HOT 2
- Dont work to Angular 15 HOT 5
- angular-bootstrap-md + Angular 15 HOT 3
- _option.scss variables HOT 2
- Bug with the class "modal-dialog-scrollable" HOT 2
- Bug with sidenav and slim HOT 2
- Angular 16 Support Release Date? HOT 3
- [Bug] Dropdown position bugged since 5.0.0 HOT 4
- Compatible Angular 17 HOT 4
- Angular 16 Support Migrating from angular-bootstrap-md HOT 1
- Bootstrap version and :root parameters
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 mdb-angular-ui-kit.