InterviewHubPRO
Section Overview
Q134

Question 134 of 283

Part 6: Decorators, Dependency Injection & Tooling (124 - 150)

47%
Angular & Signals (283 Qs)•Part 6: Decorators, Dependency Injection & Tooling (124 - 150)

How do you use Bazel with Angular CLI?

The @angular/bazel package provides a builder that allows Angular CLI to use Bazel as the build tool.

  1. Use in an existing application: Add @angular/bazel using CLI
javascript
  ng add @angular/bazel
  1. Use in a new application: Install the package and create the application with collection option
javascript
  npm install -g @angular/bazel
  ng new --collection=@angular/bazel

When you use ng build and ng serve commands, Bazel is used behind the scenes and outputs the results in dist/bin folder.