using mocha/chai/sinon for node.js unit-tests? check out my utility: mocha-stirrer to easily reuse test components and mock require dependencies
Make sure you've read the Angular.io CONTRIBUTING.md before starting out.
Follow these steps when you are setting up the repo locally for the first time and would like to view your changes in the browser as you edit.
- Fork angular/angular.
In terminal:
This file contains hidden or 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. ng serve --host <local ip address> | |
| 2. Find local ip address by following | |
| windows => cmd => ipconfig => IPv4 Address | |
| mac and linux => terminal => ifconfig | grep inet => inet adderss | |
| 3. Navigate to <local ip adress>:4200 from any device on the same network. |
This file contains hidden or 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 { CookieService } from 'ngx-cookie-service'; | |
| import { Injectable } from '@angular/core'; | |
| import { HttpInterceptor, HttpHeaders, HttpHandler, HttpRequest, HttpEvent } | |
| from '@angular/common/http'; | |
| import { Observable } from 'rxjs'; | |
| @Injectable() | |
| export class HeaderInterceptor implements HttpInterceptor { | |
| constructor( private cookieService: CookieService){ |
This file contains hidden or 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 { Injectable } from '@angular/core'; | |
| import { | |
| HttpRequest, | |
| HttpHandler, | |
| HttpInterceptor | |
| } from '@angular/common/http'; | |
| import { finalize } from 'rxjs/operators'; | |
| import { SpinnerService } from "@accubits/spinner"; | |
| import { of } from 'rxjs'; |
This file contains hidden or 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
| /* | |
| ##Device = Desktops | |
| ##Screen = 1281px to higher resolution desktops | |
| */ | |
| @media (min-width: 1281px) { | |
| //CSS | |
This file contains hidden or 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
| <!DOCTYPE html> | |
| <html> | |
| <head> | |
| <meta charset="utf-8"> | |
| <meta name="viewport" content="width=device-width"> | |
| <title>JS Bin</title> | |
| </head> | |
| <body> | |
| <script id="jsbin-javascript"> |
This file contains hidden or 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
| [ | |
| { | |
| "name": "Afghanistan", | |
| "dial_code": "+93", | |
| "code": "AF" | |
| }, | |
| { | |
| "name": "Aland Islands", | |
| "dial_code": "+358", | |
| "code": "AX" |
This file contains hidden or 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
| <body> | |
| <div class="welcome_popup"> | |
| <div class="profile_pic"> | |
| <img src="https://pbs.twimg.com/profile_images/817369685192605696/iWkgUdBf_400x400.jpg"> | |
| </div> | |
| <div class="text"> | |
| <p class="welcome"> Welcome <p> | |
| <p class="user"> Doctor001844 </p> | |
| </div | |
| </div> |
This file contains hidden or 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
| <body> | |
| <div class="welcome_popup"> | |
| <div class="profile_pic"> | |
| <img src="https://pbs.twimg.com/profile_images/817369685192605696/iWkgUdBf_400x400.jpg"> | |
| </div> | |
| <div class="text"> | |
| <p class="welcome"> Welcome <p> | |
| <p class="user"> Doctor001844 </p> | |
| </div | |
| </div> |
NewerOlder