Is it worth using Bootstrap with Angular 8?

Asked

Viewed 107 times

-2

Good night,

I recently started studying Angular 8. My contact with Angular until then was practically 0. Today I came across a question.

Most of the time I read about using jQuery with Angular, people advised against using both together.

Today, creating something to know a little better Angular Router, I thought about using Bootstrap to make the content a little better. Until I remembered: Bootstrap depends on jQuery.

My question is:

Is it worth using both together? Is there a better alternative? I have the impression that using both will be just making the site heavier.

Thank you.

  • 1

    Why not use the Angular version of Bootstrap? Most libraries written with jQuery have rewritten versions in Angular/Vue/React.

  • Thanks for the tip, I will research the version for Angular.

1 answer

1


not necessarily need jquery, besides, jquery is a gigantic "library", the correct is to separate only what you will use.

although calling jquery "library", the initial idea for it was to be a framework, as well as bootstrap, which should be a framework, over time did a disassembly on it, so decreed the library status instead, it possesses some things that can conflict with the angular, because they are similar in some points, nothing that cannot be circumvented.

plus, you won’t need jquery, because you can do everything it does with Angularjs, it all depends on what you want to develop, bootstrap can be used, even without jquery.

Remembering that jquery just simplifies the code, it is not another language, just like ajax, it remains javascript in the same way.

Browser other questions tagged

You are not signed in. Login or sign up in order to post.