Posts by bruna • 49 points
3 posts
-
-2
votes1
answer145
viewsQ: Change the css of an element by id
I tried the following code: $("#maintenanceRequest").css({"backgroundColor": "black"}); But the following error appears: Uncaught TypeError: $(...).css is not a function at <anonymous>:1:26…
-
4
votes1
answer57
viewsQ: Generate component at angular
When I execute the command ng generate component configure-notification/configure-notification-edit --module app he gives the following error: /usr/bin/ng: line 40: exec: generate: not found before…
-
0
votes2
answers678
viewsQ: Return data from an HTTP request at Angular
I need to make a simple request that will return only one JSON. I am trying to do this using the following function: .ts: getModel(modelId: number) { let modelName: any = "none";…