This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Hope you all are doing good!! | |
After 3 years of exciting and memorable journey with TCS-CBA and almost 9 years with TCS, it is time to move on to explore something new and embark on new opportunities & challenges in my life. Monday (8th Aug) is my last working day at TCS and CBA. While I’m excited about the new opportunity, leaving great working relationships like this one is definitely sad. | |
Throughout my years with CBA, I have worked with the amazing people, I am taking with me a wealth of learning and experience as well as cherish some very good memories of the past that we have worked together. My sincere gratitude to all my TCS and CBA colleagues, mentors and leaders who were with me in this journey; who trusted me, encouraged me and always had my back. | |
While I am excited about my next adventure, I will be missing all the wonderful talented friends I have worked with. The world is small enough and hopefully, we will meet again. | |
Wishing you all the best in your future endeavours. | |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
1. LoadingScreenComponent | |
import { Subscription } from 'rxjs'; | |
import { Component, OnInit, OnDestroy, Output, EventEmitter, Input } from '@angular/core'; | |
import { LoadingScreenService } from '../../services/loading-screen.service'; | |
import { debounceTime } from 'rxjs/operators'; | |
@Component({ | |
selector: 'loading-screen', |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
1. add html below in <app-root></app-root> or in index.html | |
<app-root> | |
<div id="pre-bootstrap"> | |
<div class="messaging"> | |
<h1> | |
Website is Loading | |
</h1> | |
<div class="app-loader"> | |
<div class="app-loader-inner"> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
string decryptPassword = MD5DESEncryption.Decrypt(model.Password, true); | |
private static string securityKey = "Dicker183654729Data"; | |
public static string Encrypt(string toEncrypt, bool useHashing) | |
{ | |
string retVal = string.Empty; | |
try | |
{ | |
byte[] keyArray; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
in startup.cs | |
services.AddSingleton<IActionContextAccessor, ActionContextAccessor>(); | |
services.AddScoped<IUrlHelper>(x => { | |
var actionContext = x.GetRequiredService<IActionContextAccessor>().ActionContext; | |
var factory = x.GetRequiredService<IUrlHelperFactory>(); | |
return factory.GetUrlHelper(actionContext); | |
}); | |
then could inject IUrlHelper |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
private readonly IConfiguration _configuration; | |
public Tools(IConfiguration configuration) | |
{ | |
_configuration = configuration; | |
} | |
public string GetConfigKey(string categoryName, string keyName) | |
{ | |
string keyValue = null; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
1. top arrow fix | |
:host ::ng-deep .arrow::before { | |
border-top-color: #C0054D; | |
border-bottom-color: white !important; | |
} | |
:host ::ng-deep .tooltip-inner { | |
background: #C0054D; | |
width: 200px; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
1. Go to appsettings.json file and add the secret key for the JWT encryption. | |
"AppSettings": { | |
"Secret": "HHPM0JEOMLGYXYU5YS32" | |
}, | |
2. Create a class as “AppSettings.cs” to access the AppSetting values trough a class. | |
namespace NetCoreWebAPI.Helpers |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
transform: translate(0, -50%); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import { ValidatorFn } from '@angular/forms'; | |
export interface BooleanFn { | |
(): boolean; | |
} | |
/** | |
* A conditional validator generator. Assigns a validator to the form control if the predicate function returns true on the moment of validation | |
* @example | |
* Here if the myCheckbox is set to true, the myEmailField will be required and also the text will have to have the word 'mason' in the end. |