All Questions
61 questions
2
votes
2
answers
104
views
Angular JS Angular 18 hybrid routing
I have an angular js/angular 18 hybrid application which is working, but what I am trying to do is migrate the routes of the customer users like this:
.state('customer', {
url: "/...
1
vote
2
answers
287
views
Component TasksComponent is standalone, and cannot be declared in an NgModule
X [ERROR] TS-996008: Component TasksComponent is standalone, and cannot be declared in an NgModule. Did you mean to import it instead? [plugin angular-compiler]
src/app/app.module.ts:13:4:
13 │ ...
1
vote
1
answer
35
views
NG8001: 'router-outlet' is not a known element:
i was having a problem at first I was trying to log in to connect with main when I logged in, but while I moved, I asked for help pro gpt and now an error appeared that I could not solve in any way, ...
2
votes
1
answer
81
views
How to maintain query params when redirecting in Angular RoutingModule with redirectTo?
Summary
I want to redirect in my Angular RoutingModule from one path to another while maintaining the query params. However, when the redirect completes, the query params are not present anymore.
The ...
0
votes
2
answers
130
views
Angular textarea does not update data on time but the console shows it correctly
I use service socket.io to emit and receive data. When the send button is clicked it emits data and shows "FENEmitInfo" then receives the data and shows "FENSocketioGetCnt" and &...
0
votes
0
answers
103
views
CanActivateFn get hit but same appcomponent get hit too. standalone. angular
My environment as ng 17.1.13, node 19.9.0, npm 9.6.3. Standalone application.
My app.routes.ts
import { Routes } from '@angular/router';
import { AppComponent } from './app.component';
import { ...
0
votes
0
answers
150
views
Add suffix to angular route parameter
Previously i have a route with parameter like this:
{ path: 'store/:storeId/.', component: StoreComponent }
i'm able to get the parameter value like this, if i navigate to this url https://localhost/...
0
votes
1
answer
34
views
How to make a drop down textbox required if the radio button is Yes?
I'm trying to code my program where I can have the dropdown textbox required if the answer to my radio button is yes. Right now I just have them both required. Is there a way I can read my value in ...
-1
votes
2
answers
42
views
I want to refresh the page from the function in angular
i am new to the angular i tried to make this work, here the "confirmDoctor" function is making some changes through the api, now i want the the way to automatically refresh the page of some ...
0
votes
4
answers
827
views
How to do two API calls in angular for same component
How to make two different api calls for same angular component for example In a page I’m rendering order component twice in tabular manager using ngif condition to display different data.I have TAB1 &...
0
votes
0
answers
149
views
Angular route with segment variables not reloading the child component when the url changes dynamically
Angular route with segment variables not reloading the child component when the url changes dynamically.
I am trying to have both the parentRoute and the childRoute inside one component and whenver i ...
0
votes
2
answers
70
views
Routing the data from EF .NET Core 6 to Angular
I'm trying to get data from my ASP.NET Core 6 back-end to Angular and I run into a problem:
Error: NG0900: Error trying to diff '[object Object]'. Only arrays and iterables are allowed
export class ...
0
votes
1
answer
856
views
Angular Modal Popup Form Validation Not Working
Scenario:
I am new to angular. When I click the button Enable Access, I'm trying to create a Modal Popup Form in Angular. The issue I am facing is it is not checking the validations like Required. It ...
0
votes
2
answers
875
views
How to check if a website is built on Angular or Angularjs?
for any website, on the browser, how to know if a website is built on Angular or Angularjs?
1
vote
0
answers
205
views
ui-router not seeing ui-view during attempt to upgrade from angularJS to latest angular
I have been following the upgrade steps in https://angular.io/guide/upgrade. I removed the ng-app directive and added to my .ts entry point file:
angular.bootstrap(document.body, ['myApp'], { strictDi:...