Skip to main content
The 2024 Developer Survey results are live! See the results

All Questions

0 votes
0 answers
346 views

Here i need to prevent from reload my angular component when we are navigating to browser back and forward button

I have component-A(Details item page) and Component-B(selectable list page), the scenario is like when I goto component-A(Details page) and here I need to add some labels so, I goto component-B and ...
Manav Soni's user avatar
1 vote
3 answers
919 views

BrowserModule has already been loaded , create lazy loading module

Error is : Error: BrowserModule has already been loaded. If you need access to common directives such as NgIf and NgFor from a lazy loaded module, import CommonModule instead. at new BrowserModule ...
rubinmon's user avatar
  • 153
1 vote
1 answer
34 views

cannot navigate to left side menu or open new report?

I work on angular 7 app I face issue my Issue is cannot navigate on left side menu.I can select only one report from left side menu but cannot navigate until I reload component report category ...
ahmed barbary's user avatar
0 votes
1 answer
564 views

When routing using router Link it creates the URL correctly but does not redirect to component and displays data?

I work on angular 7 app I face issue when route to component report details using router link it only create URL link on browser but not redirect to component report details until I click Enter. ...
ahmed barbary's user avatar
0 votes
1 answer
62 views

Angular 7 Nested Lazy Loaded Children Routes

I have following code: app-routing.module.ts const routes: Routes = [ { path: 'login', component: LoginComponent }, { path: 'user', loadChildren: './modules/user/user.module#...
Galactic_Warrior's user avatar
0 votes
2 answers
5k views

How to lazy load module after api response in angular?

I want to lazy load a module after API response below are my routes const routes: Routes = [ { path: "", component: LandingComponent }, { path: 'student', loadChildren: () => import('./...
Vikas Kandari's user avatar
0 votes
1 answer
161 views

Angular 7.3 how to get data from the route

I want to pass the current URL from the app.routing.ts file to the guard because there is a problem where the url gets reset in the guard for some reason. Below I added how I pass the data to the ...
Djkobus's user avatar
  • 131
0 votes
1 answer
260 views

city not display on map when assign values of longitude and latitude on ngOnInit Event?

problem when assign values of latitude and longitude on ngOnInt event map city or area display Empty ? I work on angular 7 . when assign values of latitude and longitude on ngOnInit event map city ...
ahmed barbary's user avatar
0 votes
2 answers
140 views

How can I create service return values of longitude and latitude from json?

How to create service return values of longitude and latitude from JSON? I have the following URL: http://192.168.7.xxx:9200/location/_doc/27737 This URL JSON below: {"_index":"location","...
ahmed barbary's user avatar
-1 votes
1 answer
2k views

Showing navigation path location of current page or screen in angular 7

Using angular 7(Angular flux is not used.), requirement is, we need to show the path of current screen. Like, lets say there are a,b,c,d screens. We can navigate from a->b->c->d. This path of "a->b->...
Nikhil Kumar vats's user avatar
0 votes
1 answer
1k views

Error: Cannot find module when using ng serve --aot

I migrated my angular project from 6 to 7, I'm using lazy loading mechanism to load the modules. But when i'm taking the production build or serve the project with aot true ng serve --aot getting the ...
Aswin T K's user avatar
1 vote
1 answer
759 views

Why my Angular 7 app doesn't render anything in the root route when I setup lazy loading?

I have implemented lazy loading in my app and since then, the root route is not working. I have read some posts and apparently it doesn't work in Angular 7 with lazy loading, I should redirect from "" ...
Gonzalo's user avatar
  • 238
1 vote
1 answer
798 views

Angular get router without mapped parameters on navigation end

I am currently facing a problem with angular where I am subscribing to router events and I am trying to get the URL without the mapped parameters. The reason for this being that we are storing page ...
user avatar
-1 votes
1 answer
184 views

Unexpected token Z in JSON at position 0

I am working on Angular Application , on clicking to button , code : <p> Have account <a routerLink="/login"><button> Login </button></a> </p> I am getting ...
Anurag Ranjan's user avatar
0 votes
3 answers
471 views

Not able to redirect the route after windows reload

I have two pages and those are role-list and role-details. There is requirement that depends on role that i need to hide the menu options after save button click. This i am able to fulfill with the ...
Glory Raj's user avatar
  • 17.6k

15 30 50 per page
1
2 3 4 5