Topic: MDB & Angular4

rl pro asked 7 years ago


Hi, I would like to use MDB for a new project, but still fighting with it...

I downloaded mdb-angular-free-4.3.0. There is a "../node_modules/angular-bootstrap-md/scss/mdb.scss" reference in .angular-cli.json file. After "npm i" that mdb.scss file downloaded. It includes a command "@import "./angular/mdb-angular-free";". And the question is - where is the /angular/mdb-angular-free file?

It looks like the following line (in .angular-cli.json) "../node_modules/angular-bootstrap-md/scss/mdb.scss", should be replaced by "../scss/mdb.scss".

And in the "../scss/mdb.scss" the command '@import "./angular/mdb-angular-free";' should be replaced to '@import "angular/mdb-angular";'

...am I correct? Could this be fixed?

Radek


Edyta Dabrowska free answered 7 years ago


So, those 2 files are the same. The difference is that node_modules scss should not be changed (they will be overwritten when you update the package).

Edyta Dabrowska free answered 7 years ago


Hi, in 64th line of node_modules/angular-bootstrap-md/scss/mdb.scss please remove 'free' and it should work. Also, we will fix this soon.

rl pro commented 7 years ago

Dziękuję za odpowiedź :-) And the other question - what are the /scss/* files (included in the zip file) good for? Firstly I tried to use them, because the files in node_modules were "read only" and my IDE did not allow to change them. But later I edited the ../node_modules/angular-bootstrap-md/scss/mdb.scss file outside IDE and used them instead of /scss/* and it looks that everything was the same. Including the circular reference as mentioned here :-)


Please insert min. 20 characters.

FREE CONSULTATION

Hire our experts to build a dedicated project. We'll analyze your business requirements, for free.

Status

Answered

Specification of the issue

  • ForumUser: Pro
  • Premium support: No
  • Technology: MDB Angular
  • MDB Version: -
  • Device: -
  • Browser: -
  • OS: -
  • Provided sample code: No
  • Provided link: No
Tags