Base solution for your next web application

Activities of "haithamsakr"

Question

This is an invoice template that uses Angular 2 app to allow for the adding and removing of line items and notes

Question

i add the new "Pos" module { 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: 'pos', loadChildren: 'app/pos/pos.module#PosModule', //Lazy load pos module data: { preload: true } }

import { NgModule } from '@angular/core';
import { CommonModule } from '@angular/common';
import { FormsModule } from '@angular/forms';

import { ModalModule, TabsModule, TooltipModule } from 'ng2-bootstrap';
import { FileUploadModule } from '@node_modules/ng2-file-upload';

import { PosRoutingModule } from './pos-routing.module'
import { UtilsModule } from '@shared/utils/utils.module'
import { AppCommonModule } from '@app/shared/common/app-common.module'


import { StoresComponent } from './Basic-Data/Stores/Stores.component';



@NgModule({
    imports: [
        FormsModule,
        CommonModule,

        FileUploadModule,
        ModalModule.forRoot(),
        TabsModule.forRoot(),
        TooltipModule.forRoot(),

        PosRoutingModule,
        UtilsModule,
        AppCommonModule
    ],
    declarations: [
        StoresComponent
    ]
})
export class PosModule { }
import { NgModule } from '@angular/core';
import { RouterModule } from '@angular/router';
import { StoresComponent } from './Basic-Data/Stores/Stores.component';
@NgModule({
    imports: [
        RouterModule.forChild([
            {
                path: '',
                children: [
                    { path: 'Stores', component: StoresComponent, data: { permission: 'Pages.Administration.Users' } }
                ]
            }
        ])
    ],
    exports: [
        RouterModule
    ]
})
export class PosRoutingModule { }

and in side bar component

new SideBarMenuItem("Basic Data", "Pages.BasicData", "icon-list", "", [
                new SideBarMenuItem("Store", "Pages.BasicData.Stores", "icon-link", "/app/pos/Basic-Data/Stores"),

but still i got Error: Cannot match any routes. URL Segment: 'app/pos/Basic-Data/Stores'

in web.host i replaced "App": { "WebSiteRootAddress": "http://test.almonjez.org/", "CorsOrigins": "http://api.almonjez.org/" },

in web.Mvc i Replaced

"App": { "WebSiteRootAddress": "http://test.almonjez.org/" },

but i got

Request URL:http://test.almonjez.org/ Request Method:GET Status Code:500 Internal Server Error

i'm uploaded the API on this URL "http://api.falcon-app.com"

the api was run success on external severe

but i got error when in the last line "[ base url: / , api version: v1 ]"

i changed the all localhost URL to my new URL

"App": { "WebSiteRootAddress": "http://api.falcon-app.com/", "CorsOrigins": "http://api.falcon-app.com" },

what the URL i must change it in API and Angular 2 File please

and the connection string there is more connections

Do I have to change all of them to the external server or only one is important

thank you :?:

Question

in first start the database updated but without seed data

how Can i run data seeder

thank you

Showing 1 to 5 of 5 entries