Skip to main content

Posts

Showing posts with the label Method

Featured post

XM Cloud content sync from prod to uat or UAT to prod step by step

When working with Sitecore, it’s common to need content synchronization across environments. Today, I’ll walk you through the steps to sync content from Production to UAT/TEST and vice versa. Steps to Follow 1. Set Up Your Workspace Create a folder on your computer where you will manage the script files and exported data. Open the folder path in PowerShell to begin scripting. We need to run some scripts in PowerShell to update the folder with the basic requirements for syncing content. PS C:\Soft\ContentSync> dotnet new tool-manifest PS C:\Soft\ContentSync> dotnet nuget add source -n Sitecore https://nuget.sitecore.com/resources/v3/index.json PS C:\Soft\ContentSync> dotnet tool install Sitecore.CLI PS C:\Soft\ContentSync> dotnet sitecore cloud login If the above error occurs, you will need to run a different command to resolve the issue. PS C:\Soft\ContentSync> dotnet sitecore init now, Again run above command to open and authenticate with XM Cloud. It will be there a...

Config() and run() method in AngularJS

Config()  :- AngularJs ,config is use to injecting module wise configuration setting to prevents from accidental  instantiation  of services before fully configure. It is  useful  to organize providers before they are essentially created.It is executed at the time of provider registration and configuration phase. myFirstModule.config([     '$locationProvider' ,     '$routeProvider' ,     function ($locationProvider, $routeProvider) {     $locationProvider.html5Mode( false );     $locationProvider.hashPrefix( '!' );     $routeProvider. when ( '/' , {         controller: 'myCtrl'     }); }]); Run() :-AngularJS,  It’s injector is created when run() get executed . It is use to  kick-start  the application It runs when all of services is configured.It is use to in...