1
Below is the implementation of bootstrap in my application (angular.json)
"styles": [
"src/styles.css",
"./node_modules/bootstrap/dist/css/bootstrap.min.css"
],
"scripts": [
"./node_modules/jquery/dist/jquery.min.js",
"./node_modules/popper.js/dist/umd/popper.min.js",
"./node_modules/bootstrap/dist/js/bootstrap.min.js"
]
In Component.html it looks like this:
<div class="form-row">
<div class="form-group col">
<label for="AccountName" ***data-toggle="tooltip" data-placement="top" title="Tooltip on top"***>Account Name</label>
<input class="form-control isRequired" formControlName="AccountName" type="text" id="AccountName">
<small *ngIf="formAmendment.get('AccountName').errors?.required" class="text-danger d-block mt-2">Account Name is required!</small>
</div>
</div>
And that’s how it’s coming up on the screen.
How do I fix it?
A quick and easy way to solve any problem with bootstrap is to install ng-bootstrap. Rode: npm install --save @ng-bootstrap/ng-bootstrap and pronto Documentation: https://ng-bootstrap.github.io/#/Getting-Started
– rafaelmacedo