Base solution for your next web application
Ends in:
01 DAYS
01 HRS
01 MIN
01 SEC

Activities of "bilalhaidar"

Hello, When I run the Host application (Asp.NET core). Then I try to call of the Urls, I always get 404. Is there a step I need to do so that I can run APIs using swagger?

Thanks

Question

Hello,

In the *-routing.module.ts files you specify for each route an object of "data: { preload: true }".

Are you defining a preload-strategy somewhere? Otherwise, why add this property with preload:true?

Thanks

OK I have it now. Still facing sane issue.

Hello, I am trying to change the default redirect in an Angular 2 app. It is not working. I changed the app-routing.module.ts to something like this:

'/poc' is a route defined inside the 'sms' module as shown below.

Why would it not work?

Thanks

import { NgModule } from '@angular/core';
import { Routes, RouterModule } from '@angular/router';
import { NotificationsComponent } from './shared/layout/notifications/notifications.component';
import { AppComponent } from './app.component';
import { AppRouteGuard } from './shared/common/auth/auth-route-guard';

@NgModule({
    imports: [
        RouterModule.forChild([
            {
                path: 'app',
                component: AppComponent,
                canActivate: [AppRouteGuard],
                canActivateChild: [AppRouteGuard],
                children: [
                    {
                        path: '',
                        children: [
                            { path: 'notifications', component: NotificationsComponent },
                            { path: '', redirectTo: '/poc', pathMatch: 'full' }
                        ]
                    },
                    {
                        path: 'main',
                        loadChildren: 'app/main/main.module#MainModule', //Lazy load main module
                        data: { preload: true }
                    },
                    {
                        path: 'admin',
                        loadChildren: 'app/admin/admin.module#AdminModule', //Lazy load admin module
                        data: { preload: true }
                    },
                    {
                        path: 'sms',
                        loadChildren: 'app/sms/sms.module#SmsModule', //Lazy load sms module
                        data: { preload: true }
                    }
                ]
            }
        ])
    ],
    exports: [RouterModule]
})
export class AppRoutingModule { }
Answer

My 2 cents.

I had to read about that long time ago and caused me some confusion.

First of all, you can configure the ClockProvider to be UTC (server side). This way, any date you send to the server, will be stored in the database as UTC. For me, I had to do some cleaning for the dates so that I always send the date without a time or at least (00:00:00).

On the client side, depending on the timezone the user have selected, the date will be shown accordingly.

Moment is configured by default to local date (because ClockProvider is configured so on the server). However, I prefer always to use ClockProvider.Utc to make things easy.

HTH

In that location I don't have the file horizontal-timeline.js!

Thanks. I was able to check them out.

A question to the dev team, why not implement the Date control as an angular component rather than making use of jQuery?

In fact, this might cause problems having multiple instances of the same service, in different levels of the injector (when using lazy loading).

if possible to ask someone from dev team to comment on this here.

Thanks

I already know that and that's why I am asking to gain some knowledge.

Maybe someone from the development team should answer this thread.

Thanks

I don't have this file in the angular-cli.json.

Can you guide me on how to remove this feature?

Thanks

Showing 111 to 120 of 635 entries