Sign Up

Sign In

Forget Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

You must login to ask question.

Discy Latest Questions

  • 0

I want to prevent page refresh by everywhere. I tried the code below import { Component, OnInit } from '@angular/core'; import { Router } from '@angular/router'; import { CommonServices } from '../services/common.service';@Component({ selector: 'app-review-prescription', templateUrl: './review-prescription.component.html', styleUrls: ['../../assets/css/prescriptionView.css'], providers:[ ...

  • 0

I want to redirect a route to another route: /foo/bar/123 schould redirect to /bar/123;mode=test I configured the route in the following way: { path: 'foo/bar/:id', redirectTo: '/bar/:id;mode=test' }, When it is redirecting, the ;mode=test part is missing in the target url. How can I include this?

  • 0

I am trying to implement Lazy Loading into my application but seem to be coming across an issue whereby I get the error message : Error: RouterModule.forRoot() called twice. Lazy loaded modules should use RouterModule.forChild() instead. So I have my main app-routing.module.ts and also app-module.ts which ...

  • 0

I want to display different views by child routes. For Example I want my template to hold multiple router-outlet Version: @angular/router": "3.0.0-alpha.7" <router-outlet></router-outlet> <router-outlet name="route1"></router-outlet> <router-outlet name="route2"></router-outlet>In my router i want to specify the name of router. As i saw in a question, the solution ...

  • 0

I need for the same anchor link to be pointed conditionally locally or to external resource. I tried <a [href]="outside?externalUrl:null" [routerLink]="outside?[]:['/route',id]" >test</a> But it doesn’t work. I don’t get any errors, but it points to the same local page and ignores ...

  • 0

I Have an Angular application. I run the command ng build --prod --aot to generate the dist folder. In the dist folder I created a file named Staticfile then I uploaded the dist folder to pivotal.io with the following commands:cf push name-app –no-start cf start name-appThe app runs ...

close