git checkout -b [name_of_your_new_branch]
- Push the branch on github :
git push origin [name_of_your_new_branch]
- When you want to commit something in your branch, be sure to be in your branch.
| import { AsyncPipe } from "@angular/common"; | |
| import { Component } from "@angular/core"; | |
| import { takeUntilDestroyed, toObservable } from "@angular/core/rxjs-interop"; | |
| import { injectNetwork } from "ngxtension/inject-network"; | |
| import { | |
| distinctUntilChanged, | |
| map, | |
| skipWhile, | |
| startWith, | |
| switchMap, |
| { | |
| "compilerOptions": { | |
| /* Visit https://aka.ms/tsconfig to read more about this file */ | |
| /* Projects */ | |
| // "incremental": true, /* Save .tsbuildinfo files to allow for incremental compilation of projects. */ | |
| // "composite": true, /* Enable constraints that allow a TypeScript project to be used with project references. */ | |
| // "tsBuildInfoFile": "./.tsbuildinfo", /* Specify the path to .tsbuildinfo incremental compilation file. */ | |
| // "disableSourceOfProjectReferenceRedirect": true, /* Disable preferring source files instead of declaration files when referencing composite projects. */ | |
| // "disableSolutionSearching": true, /* Opt a project out of multi-project reference checking when editing. */ |
| /** | |
| * Filters an array of objects using custom predicates. | |
| * | |
| * @param {Array} array: the array to filter | |
| * @param {Object} filters: an object with the filter criteria | |
| * @return {Array} | |
| */ | |
| function filterArray(array, filters) { | |
| const filterKeys = Object.keys(filters); | |
| return array.filter(item => { |
| // component.ts | |
| import { Component, Input, OnInit } from '@angular/core'; | |
| import { FormGroup, FormControl, FormBuilder, Validators } from '@angular/forms'; | |
| import { QuestionBase } from './question-base'; | |
| import { QuestionControlService } from './question-control.service'; | |
| @Component({ | |
| selector: 'app-dynamic-form', | |
| templateUrl: './dynamic-form.component.html', |
| <!DOCTYPE html> | |
| <html lang="en"> | |
| <head> | |
| <meta charset="UTF-8" /> | |
| <meta name="viewport" content="width=device-width, initial-scale=1.0" /> | |
| <meta http-equiv="X-UA-Compatible" content="ie=edge" /> | |
| <title>Mini App</title> | |
| <style> | |
| body { | |
| margin: 0; |
| @media only screen and (max-device-width: 375px) { | |
| .card_cl{ | |
| background-color: #e60003; | |
| } | |
| } | |
| @media only screen and (min-device-width: 380px) { | |
| .card_cl{ | |
| background-color: #2a015e; |
| https://jsfiddle.net/ywain/L96q8uj5/ | |
| HTML | |
| <script src="https://js.stripe.com/v3/"></script> | |
| <body> | |
| <form action="//httpbin.org/post" method="POST"> | |
| <input type="hidden" name="token" /> | |
| <div class="group"> | |
| <label> |
| First Do this ... | |
| git fetch origin master | |
| git merge master | |
| Then, do this ... | |
| git fetch origin master:tmp | |
| git rebase tmp | |
| git push origin HEAD:master |
| step 1: composer clearcache | |
| step 2: composer global update |
git checkout -b [name_of_your_new_branch]
git push origin [name_of_your_new_branch]