Reference :
https://www.educative.io/answers/splice-vs-slice-in-javascript
Reference :
https://www.educative.io/answers/splice-vs-slice-in-javascript
Reference:
https://stackoverflow.com/questions/35269179/angular-conditional-class-with-ngclass
One one
[class.my_class] = "step === 'step1'"
type two
[ngClass]="{'my_class': step === 'step1'}"
and multiple option:
[ngClass]="{'my_class': step === 'step1', 'my_class2' : step === 'step2' }"
type three
[ngClass]="{1 : 'my_class1', 2 : 'my_class2', 3 : 'my_class4'}[step]"
type four
[ngClass]="step == 'step1' ? 'my_class1' : 'my_class2'"
if (foo === 1) {
} else if (bar === 99) {
} else if (foo === 2) {
} else {
}
in the template:
<ng-container *ngIf="foo === 1; else elseif1">foo === 1</ng-container>
<ng-template #elseif1>
<ng-container *ngIf="bar === 99; else elseif2">bar === 99</ng-container>
</ng-template>
<ng-template #elseif2>
<ng-container *ngIf="foo === 2; else else1">foo === 2</ng-container>
</ng-template>
<ng-template #else1>else</ng-template>
Reference:
https://stackoverflow.com/questions/43812770/ngif-else-if-in-template
Checkin Process
======= =======
git status
git add . (stage is nothing but saving a copy in my branch)
git commit -m "LZCTCPSCNT-645 and LZCTCPSCNT-1098 is fixed"
git stash (temporarily shelves (or stashes) changes you've made to your working copy)
git checkout develop
git pull
git checkout bugfix/faizal-bugfixes
git rebase develop (Git rebase and merge both integrate changes from one branch into another. Where they differ is how it's done. Git rebase moves a feature branch into a master.
Git merge adds a new commit, preserving the history.)
Any Conflicts Appears:
1. Resolve conflicts
2. Commit - Git commit -m "merge the changes"
3. Git rebase --continue
4. Git push or git push --force
git push --force
git stash apply (git stash temporarily shelves (or stashes) changes you've made to your working copy so you can work on something else,
and then come back and re-apply them later on.)
Rebase steps
Our Branch ( Front End Ui)
git pull
git push
Rebase branch name
git pull origin develop (branch)
Any Conflicts Appears:
1. Resolve conflicts
2. Add the files
3. Commit - Git commit -m "merge the changes"
4. Git push or git push --force
.
if its no conflict directly we can push
< input type = "checkbox" (change) = "handleSelectTaskItem($event, taskItem)" [checked] = " taskItem . i...