Upgraded to bazel 3.7.2 and rules_nodejs 2.3.2

Change-Id: If53686f2475c4f367909de577b4da95de8e16768
(cherry picked from commit 436c60a1f65d3c7dbdbd664c7b0e65f5362ef24d)
diff --git a/web/gui2/src/main/webapp/app/view/device/BUILD.bazel b/web/gui2/src/main/webapp/app/view/device/BUILD.bazel
index f821a4f..ce7abff 100644
--- a/web/gui2/src/main/webapp/app/view/device/BUILD.bazel
+++ b/web/gui2/src/main/webapp/app/view/device/BUILD.bazel
@@ -14,11 +14,11 @@
  limitations under the License.
 """
 
+load("@npm//@bazel/typescript:index.bzl", "ts_library")
+
 package(default_visibility = ["//:__subpackages__"])
 
-load("@npm_angular_bazel//:index.bzl", "ng_module")
-
-ng_module(
+ts_library(
     name = "gui2-view-device",
     srcs = glob(
         include = [
@@ -28,15 +28,19 @@
             "**/*.spec.ts",
         ],
     ),
-    assets = glob([
+    angular_assets = [
+        "//web/gui2-fw-lib:extra_css",
+    ] + glob([
         "**/*.css",
         "**/*.html",
     ]),
     module_name = "gui2-view-device",
     tsconfig = "//web/gui2:tsconfig.json",
+    use_angular_plugin = True,
     deps = [
         "//web/gui2-fw-lib",
         "@npm//@angular/animations",
+        "@npm//@angular/common",
         "@npm//@angular/core",
         "@npm//@angular/forms",
         "@npm//@angular/platform-browser-dynamic",