GithubHelp home page GithubHelp logo

Comments (8)

Bloodcast69 avatar Bloodcast69 commented on July 17, 2024 2

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.

hosboss26 avatar hosboss26 commented on July 17, 2024

Hello,

I have the same problem

from mdb-angular-ui-kit.

Bloodcast69 avatar Bloodcast69 commented on July 17, 2024

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.

kvincent3 avatar kvincent3 commented on July 17, 2024

@Bloodcast69 Thanks for your angular universal compatibility answer. you have just save me a lot of time :-).

from mdb-angular-ui-kit.

Bloodcast69 avatar Bloodcast69 commented on July 17, 2024

@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.

xxyyzz2050 avatar xxyyzz2050 commented on July 17, 2024

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.

xxyyzz2050 avatar xxyyzz2050 commented on July 17, 2024

also in your guid you didn't mention how to correctly use mdb after installing angular universal
@Bloodcast69

from mdb-angular-ui-kit.

 avatar commented on July 17, 2024

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)

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.