Topic: use mdb3 in angular2

nmishra pro asked 7 years ago


How can I use mdb3 in angular2. Presently when I am importing the files, I am getting this error
SyntaxError: expected expression, got '<'
http://localhost:3333/public/javascript/mdb.min.js
Line 1
I guess it wants me to include <!DOCTYPE html> but in angular2 we don't do that. There is no <!DOCTYPE html>' and<html>` tags in it. Please suggest how it can be resolved. Thank you

We'll add search bar to MDB in the future

nmishra pro answered 7 years ago


Thank you for suggestion. It worked finally. Could you also please suggest how to make search bar according to material design specification. Thank you

Hi, Look at the angular docs. On step 5 they add <html> tag. Try to add this tag to your code

nmishra pro answered 7 years ago


I am using angular2 with meteor

Please insert min. 20 characters.

FREE CONSULTATION

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

Status

Specification of the issue

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