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>