Get 2024 Templates Mega Bundle!14 Bootstrap, Vue & React Templates + 3 Vector Sets
Get for 99$

plugins.bundle.js for the angular Demo


Im trying to follow this guide so I can use your daterangepicker on the angular demo1 project
https://preview.keenthemes.com/html/metronic/docs/forms/daterangepicker

the problem is plugins.bundle.js does not exist on the angular project. and i cant event find it in being referenced in package.json
here is your guide for angular https://preview.keenthemes.com/metronic8/angular/docs/overview


Text formatting options
Submit
Here's a how to add some HTML formatting to your comment:
  • <pre></pre> for JS codes block
  • <pre lang="html"></pre> for HTML code block
  • <pre lang="scss"></pre> for SCSS code block
  • <pre lang="php"></pre> for PHP code block
  • <code></code> for single line of code
  • <strong></strong> to make things bold
  • <em></em> to emphasize
  • <ul><li></li></ul>  to make list
  • <ol><li></li></ol>  to make ordered list
  • <h3></h3> to make headings
  • <a></a> for links
  • <img> to paste in an image
  • <blockquote></blockquote> to quote somebody
  • happy  :)
  • shocked  :|
  • sad  :(

Replies (8)


Hi Arnold,

Regarding the DateRangePicker in Metronic 8 Angular, while the HTML version of the DateRangePicker should be compatible with Angular, it might require some adjustments for seamless integration. You can try creating a custom component or directive to incorporate the DateRangePicker into your Angular project.

However, to simplify the process and avoid potential issues with jQuery dependencies, some users have found success using the "ngx-daterangepicker-bootstrap" package for better Angular integration. Although the styling might not be 100% identical to the HTML version of Metronic, it provides acceptable results for their needs.

While Metronic does offer a DateRangePicker, it's essential to consider the best approach for your specific project requirements you're working with. If you have any further questions or need additional assistance, feel free to reach out.

Best regards



If Metronic Angular does not meet your project requirements, you have the option to request a refund through the Themeforest Refund Form. Rest assured that you are eligible for a 100% money-back guarantee.



> You can try creating a custom component or directive to incorporate the DateRangePicker into your Angular project

@Faizal. yes this is what we are trying to do.
but we cant initialize it since `plugins.bundle.js` does not exist in your angular boiletplate
We would like to avoid installing more third party libraries since our design is base on the daterangepicker in the html demo.



Hi,

A more efficient approach would be to include only the specific components you need from the plugins.bundle.js file, rather than reusing the entire file. In your case, you mentioned that you require the daterangepicker and jQuery plugins.

To achieve this, you can directly obtain the daterangepicker plugin from its official website: https://www.daterangepicker.com/#usage

By doing so, you can avoid unnecessary dependencies and reduce the file size, which is particularly beneficial for Angular projects.

If you have any further questions or need additional assistance, feel free to let us know.



> A more efficient approach would be to include only the specific components you need from the plugins.bundle.js file, rather than reusing the entire file. In your case, you mentioned that you require the daterangepicker and jQuery plugins.

That doesnt make any sense. Your boilerplate already contains plugins.scss which means plugins was supposed to be part of the boilerplate. Was the plugins.bundle.js missed somehow? If so, can you point us in the right direction on how to modify angular.json/webpack so that our build can produce plugins.bundle.js?

https://snipboard.io/CgmtvE.jpg



Hi Arnold,

The image you are referring to is already part of the Angular style, and it is included in the following files:

angular/demo1/src/styles.scss >
angular/demo1/src/assets/sass/plugins.scss >
angular/demo1/src/assets/sass/core/vendors/plugins/_plugins.scss

Therefore, you don't need to worry about the DateRangePicker style as it is already included in these files.

Regarding the plugins.bundle.js, please note that it is not part of the Angular JS files. It is actually from the HTML version. My suggestion was to avoid reusing the entire plugins.bundle.js file since it contains various vendor plugins that may not be necessary for your Angular project. Instead, you can include only the specific parts that you need, such as the DateRangePicker and jQuery, to optimize your project and reduce unnecessary dependencies.

I hope this clarifies the inclusion of styles and the usage of plugins.bundle.js. If you have any more questions or need further assistance, feel free to ask. Thank you!



ok thanks!
that was the answer im looking for. we can close this thread now.



You're welcome! I'm glad I could provide the answer you were looking for. If you have any more questions or need further assistance in the future, feel free to reach out. Have a great day, and take care!


Text formatting options
Submit
Here's a how to add some HTML formatting to your comment:
  • <pre></pre> for JS codes block
  • <pre lang="html"></pre> for HTML code block
  • <pre lang="scss"></pre> for SCSS code block
  • <pre lang="php"></pre> for PHP code block
  • <code></code> for single line of code
  • <strong></strong> to make things bold
  • <em></em> to emphasize
  • <ul><li></li></ul>  to make list
  • <ol><li></li></ol>  to make ordered list
  • <h3></h3> to make headings
  • <a></a> for links
  • <img> to paste in an image
  • <blockquote></blockquote> to quote somebody
  • happy  :)
  • shocked  :|
  • sad  :(
Text formatting options
Submit
Here's a how to add some HTML formatting to your comment:
  • <pre></pre> for JS codes block
  • <pre lang="html"></pre> for HTML code block
  • <pre lang="scss"></pre> for SCSS code block
  • <pre lang="php"></pre> for PHP code block
  • <code></code> for single line of code
  • <strong></strong> to make things bold
  • <em></em> to emphasize
  • <ul><li></li></ul>  to make list
  • <ol><li></li></ol>  to make ordered list
  • <h3></h3> to make headings
  • <a></a> for links
  • <img> to paste in an image
  • <blockquote></blockquote> to quote somebody
  • happy  :)
  • shocked  :|
  • sad  :(