Tuesday, August 17, 2021

How do I clone a branch in Git?

 If you want to clone you code from DevOps using the ,cmd so steps are as below :-


Step 1:- Go to your branch and copy the clone Path(HTTPS or SSH).Use 

Step 2:- Go CMD and open your path where you want to clone your code.

Ste 3 :- Use this command git clone  <Step 1 Path>.

The full commands are as below 


 


Thank you Hope it is help you.

Friday, August 13, 2021

How to Downgrade/Upgrade angular version.

 If you want to Downgrade/Upgrade you angular version then you have follow the below steps.


Step 1:- npm uninstall -g @angular/cli

Step 2:- npm cache clean --force

Step 3:- Specify which version you want to install

npm install -g @angular/cli@x.x.x(For search list of version pls click here)


This will get the latest cli version: npm install -g @angular/cli



Thank you!


Node Sass version 6.0.1 is incompatible with ^4.0.0. angular

 When you getting error  "Node Sass version 6.0.1 is incompatible with ^4.0.0. angular" .The solution are as below:-

Step 1:- npm uninstall node-sass 

Step 2:- npm install node-sass@4.14.1

I thing it will help you.


Thank you 



Wednesday, June 23, 2021

Port 4200 is already in use. Use '--port' to specify a different port.

 if you are getting Port 4200 is already in use. Use '--port' to specify a different port the use below command.


ng serve --open --port 4201.

Thank you.

ERROR in node_modules/@types/googlemaps/reference/info-window.d.ts(73,71): error TS2304: Cannot find name 'unknown'.

 When you have issue in googlemaps in angular the solution are as below :-


run the command npm i @types/googlemaps@3.38.0



Thank you !

node_modules/rxjs/internal/types.d.ts(81,44): error TS1005: ';' expected error after installation of Angular 6

 If you I got an error node_modules/rxjs/internal/types.d.ts(81,44): error TS1005: ';' expected solution is as below 


You need to do some changes in package.json.

Go to package.json and modify "rxjs": "^6.0.0" to "rxjs": "6.0.0"Then run npm update in your project.




Thank you ,


Tuesday, June 8, 2021

How to get multiple value from dropdown in angular ?

 Hello Friends 

 In this artical  i will share you "How to get  multiple value from dropdown"  Hope it will help you.

The sample code are as below:-

 <div class="col-12 mt-4">
   <label>Account Name:</label>
      <select [(ngModel)]="dlAccountname" id="dlAccountname" name="dlAccountname"
                        class="form-control full-width">
             <option value="" selected="selected">Please Select Account Name</option>                      
               <option *ngFor="let item of AccountList;" [ngValue]="item" > 
                   {{ item.Canvas_Name }}
                            
                        </option>
                    </select>
                </div>