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

Activities of "bilalhaidar"

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 { }

Hello, Does the project ship with a datepicker? I need to use a calendar control for the date of birth. I prefer not to add more npm packages unless I need to. Is there such a control in the application that I could use it?

Thanks

Hello,

The subject says it all. Can a host admin reset the password for a tenant admin?

Thanks Bilal

Hi, Sometimes I am getting errors in the console when opening the application. I've added a snapshot to have a better look at the problem I am having.

Thanks Bilal

Hello,

I noticed in the AppCommonModule that you use the forRoot() method to provide 2 services. Also, in the providers array of the module you provide 2 other services.

My question is why not move them all to forRoot()? Why separating them?

Because AppCommonModule would be imported in every new Feature Module, so Angular would create more than one instance of the DateTimeService and AppLocalizationService. In a time, they could be singleton also and added with forRoot()?

Thanks

Hello, In the ASP.NET MVC 5 / Angular Js, I was using abp.setting.get(). Now when I upgraded to the ASP.NET Core / Angular 2, I cannot find this function. Has anything been changed?

Also, back then, I used the Razor views and I was able to access this: SettingManager.GetSettingValue()

Now how to accomplish the same thing?

Thanks Bilal

Hi,

I created a new module and imported it to AppModule (lazy load).

In this new module I needed to use [busyIf] directive. I couldn't use it without importing UtilsModule into my new module. Although UtilsModule is already imported to AppModule.

Why is that?

Thanks Bilal

Hello, When publishing the application to IIS local, I had to change some Urls to make use of ~/ instead of just / as my app wasn't hosted as a website but rather an application inside Default Website.

Thanks Bilal

Hello, I am trying to publish the application I am working on (ASP.NET Core / Angular 2 / .NET 4.6) to IIS on my local machine. I followed the steps online to publish to IIS. Once I run the application, I get this error:

HTTP Error 502.5 - Process Failure 
Common causes of this issue: 
The application process failed to start 
The application process started but then stopped 
The application process started but failed to listen on the configured port 
Troubleshooting steps: 
Check the system event log for error messages 
Enable logging the application process’ stdout messages 
Attach a debugger to the application process and inspect 
For more information visit: https://go.microsoft.com/fwlink/?LinkID=808681

I then check the Event Viewer and see this error:

Application 'MACHINE/WEBROOT/APPHOST/DEFAULT WEB SITE/DRC' with physical root 'C:\inetpub\wwwroot\drc\' failed to start process with commandline '"%LAUNCHER_PATH%" %LAUNCHER_ARGS%', ErrorCode = '0x80070002 : 0.

Any idea what's going on?

Thanks Bilal

Hello

Can I make use of my application services in the public website?

I'm building an article management system. Administrator would add a new article inside backend and I need to display list of articles on the public website.

I have other functionalities also to add that is linked to backend.

Thanks

Showing 31 to 40 of 174 entries