0

cli and bootstrap in component i use bootstrap tooltip And it's note that Tooltips must be initialized with jQuery:

<script>
$(document).ready(function(){
    $('[data-toggle="tooltip"]').tooltip(); 
});
</script>

Where i should add this in angular app generated by angular.cli, I should that in component.html or index.html ?

1 Answer 1

1

If you want to use bootstraps component like tooltip, dropdown Then ngx-bootstraps is there to use ready components of bootstrap

Go with these steps

Second option is to install jquery to angular

Typescript — Integrate jQuery Plugin in your Project

Sign up to request clarification or add additional context in comments.

5 Comments

i install bootsrap and jquery and add to angular.json scripts section
Where i should add some snippet of script in angular
But there is no required to write scrip for tooltip See the exmples at the end of page <button type="button" class="btn btn-primary" tooltip="Vivamus sagittis lacus vel augue laoreet rutrum faucibus."> Button with tooltip </button>
Have you seen this post loiane.com/2017/08/…
i install ngx-bootstrap, now it's work fine, you re my hero, and thanks for attention :)

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.