Skip to content

Instantly share code, notes, and snippets.

View muhammedaltug's full-sized avatar

Muhammed Altuğ muhammedaltug

  • ADYOUNEED
  • Bartın
View GitHub Profile
@muhammedaltug
muhammedaltug / Readme.md
Last active November 8, 2022 08:40
Replace Auth Strategy and Auth Service
  • Create my-auth.service.ts and my-auth.strategy.ts.

  • Provide AuthSerevie with MyAuthService in app.module.ts

@NgModule({ 
  declarations: [AppComponent], 
  imports: [ 
    //imports 
  ], 
 providers: [ 
@muhammedaltug
muhammedaltug / index.js
Created August 1, 2022 11:33
Suite modified
'use strict';
Object.defineProperty(exports, '__esModule', { value: true });
const core_1 = require('@angular-devkit/core');
const schematics_1 = require('@angular-devkit/schematics');
const constants_1 = require('../../constants');
const paths = require('../../utils/path');
const cases = require('../../utils/text');
const templateUtils = require('../../utils/template');
const utils_1 = require('../../utils');
function default_1(params) {
@muhammedaltug
muhammedaltug / Readme.md
Created July 19, 2022 10:47
Generating proxies in microservices
  1. Create an angular lib for microservice with command below
ng generate library my-service
  1. Add path for created lib to tsconfig.json
"paths": {
  // other paths
  "my-service": ["projects/my-service/src/public-api.ts"]
}
@muhammedaltug
muhammedaltug / replace-user-component-v3.0.md
Last active October 26, 2023 11:18
How to replace Users Component

Abp users component can be replaced with these steps

  1. Create a new module called IdentityExtendedModule:
yarn ng generate module identity-extended

2.Run the following command to create a new component called UsersComponent:

yarn ng generate component users --inlineStyle --module identity-extended
@muhammedaltug
muhammedaltug / routes-component-replacement.md
Last active November 18, 2020 14:11
abp-routes component replacement in abp app pro template

Abp routes component can be replaced with these steps

  1. Run the following command to create a new component called RoutesComponent:

    yarn ng generate component routes --inlineStyle
  2. Open the generated routes.component.ts file in src/app/routes and replace content with following:

@muhammedaltug
muhammedaltug / app.component.ts
Created November 18, 2020 08:39
Abp App Pro Template Layout Customization In v3.2
import {Component} from '@angular/core';
import {ReplaceableComponentsService} from '@abp/ng.core';
import {ApplicationLayoutComponent} from "./application-layout/application-layout.component";
import {eThemeLeptonComponents} from "@volo/abp.ng.theme.lepton";
@Component({
selector: 'app-root',
template: `
<abp-loader-bar></abp-loader-bar>
<abp-dynamic-layout></abp-dynamic-layout>