I\'m using bootstrap 5 with angular and I add style and script to angular.json but the problem in VS Code it does not recognize the bootstrap classes.
Install this extension https://marketplace.visualstudio.com/items?itemName=ecmel.vscode-html-css
Then in your .vscode/settings.json:
{ "css.styleSheets": [ "https://cdn.jsdelivr.net/npm/bootstrap@5.0.0beta1/dist/css/bootstrap.min.css" ] }
Restart vscode. Worked for me.