Base solution for your next web application

Activities of "billyteng"

Module File

import { AgmCoreModule } from '@agm/core';

@NgModule({ declarations: [ FrontPageComponent,
FrontPagePickupInfoLookupTableModalComponent,

],
imports: [AppSharedModule, FrontPageRoutingModule, AdminSharedModule,
    AgmCoreModule.forRoot({
    apiKey: '',
    libraries: ['places']
  })
],

}) export class FrontPageModule {}

Component File @Component({ templateUrl: './frontpage.component.html', encapsulation: ViewEncapsulation.None, animations: [appModuleAnimation()], }) export class FrontPageComponent extends AppComponentBase implements OnInit, AfterViewInit { }

Routing File const routes: Routes = [ { path: '', component: FrontPageComponent, pathMatch: 'full', }, ];

@NgModule({ imports: [RouterModule.forChild(routes)], exports: [RouterModule], }) export class FrontPageRoutingModule {}

Hi ismcagdas

Now new layout is ok. I created ThemeEmptyLayoutComponent as you guide with

@Component({
    templateUrl: './themeEmpty-layout.component.html',
    selector: 'themeEmpty-layout',
    animations: [appModuleAnimation()]
})

themeEmpty-layout.component.html file include

<div [@routerTransition] class="d-flex flex-column flex-root">
    <topbar></topbar>
    <router-outlet></router-outlet>
</div>

Then I add <themeEmpty-layout *ngIf="theme=='themeEmpty'"></themeEmpty-layout> into app.component.html and ThemeEmptyLayoutComponent into app.module.ts I have already checked admin role is show your themes and user role is show emptytheme in app.component.ts file. It is ok. Now I created frontpage component,module,routing,html files under frontpage folder in main folder. In Html file

<div [@routerTransition]>
my textbox forms
</div>

In Component
@Component({
    templateUrl: './frontpage.component.html',
    encapsulation: ViewEncapsulation.None,
    animations: [appModuleAnimation()],
})
export class FrontPageComponent extends AppComponentBase implements OnInit, AfterViewInit {
}

In routing

....component: FrontPageComponent,....
export class FrontPageRoutingModule {}

In Module
declarations:FrontPageComponent
imports:imports
export class FrontPageModule {}

Last, In main-routing.module file

 {
        path: 'frontpage',
        loadChildren: () => import('./frontpage/frontpage.module').then(m => m.FrontPageModule),
        data: { permission: 'Pages.FrontPage' }
},

In app-routing.module file I have comment to notifications

// { path: 'notifications', component: NotificationsComponent },
  { path: 'frontpage', component:FrontPageComponent },                     

// path: '**', redirectTo: 'notifications'
path: '**', redirectTo: 'frontpage'

Now after I user login, show empty layout but not show any my textbox forms. Is there anything way to show. Why empty layout <router-outlet></router-outlet> not work?

After user login (not admin) current logic is if user got permission then show dasboard or show notifications based on permission.

please suggest me.

  • 10.1
  • Angular
  • net core

Hi Sir,

I have to create new page layout. That layout same with login layout in angular. My layout must be left side is textboxs and so on, right side is show google map. Afte login, that layout page must be show. How do it? I created not only a newpage module but also newpage component in main module. But side-bar-menu and top-bar-menu still showing. I want to main layout like login page layout ( not need login form). Can it be?

Thanks AKL

Hi ismcagdas,

Sorry. We haven't received any email from [email protected] yet.

Thanks

Hi @ismcagdas,

Could you please check [email protected] with above email subject and reply us ?

Thanks

Hi @ismcagdas,

We sent email to [email protected] with this email subject ( " Errors on published to local IIS or Server IIS #10226 ").

Thanks

Hi ismcagdas,

We got 404 errors page and stopped there. Could you please remote in our machine and take a look?

Thanks

Hi @ismcagdas,

Yes , we tried your previouse email link. But still the same. Thanks

  • version 10.1
  • Angular
  • .net core

Hi Support,

We developed with aspnet.zero angular and .net core ( ver 10.1 ) and now ready to deploy to our own IIS server. When we developed with VS 2019, everything is working fine. After we host local IIS or Server IIS. When we browser host service, we got this problem (" No XML encryptor configured. Key {b6b06ed3-7fee-4447-a4f5-4959b7e497cb} may be persisted to storage in unencrypted form. " )and we tried many ways to solve . Unfortunately we still cannot get the solutions. Could you please help publish and host attachement project on your local iis or server iis and find out the solutions for us? My boss forcing me to release the project.We are looking forward to hearing from you.

Thanks and Regards AKL

Prerequisites

Please answer the following questions before submitting an issue. YOU MAY DELETE THE PREREQUISITES SECTION.

  • What is your product version? 10.1
  • What is your product type (Angular or MVC)? angular
  • What is product framework type (.net framework or .net core)? .net core

If issue is about UI

  • Which theme are you using? Default

Hi support,

Please kindly suggest me that how to add PhoneNumber to register method and overwrite. I want to login with email or PhoneNumber also.

Thanks

Showing 11 to 20 of 43 entries