-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #168 from raj-rathod/rajesh
Rajesh
- Loading branch information
Showing
16 changed files
with
2,667 additions
and
2 deletions.
There are no files selected for viewing
This file contains 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
This file contains 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
18 changes: 18 additions & 0 deletions
18
src/app/components/problem-solving/problem-solving-routing.module.ts
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
import { NgModule } from '@angular/core'; | ||
import { RouterModule, Routes } from '@angular/router'; | ||
import { StringProblemComponent } from './string-problem/string-problem.component'; | ||
|
||
const routes: Routes = [ | ||
{ | ||
path:'', pathMatch:'full', redirectTo:'string' | ||
}, | ||
{ | ||
path:'string', component: StringProblemComponent | ||
} | ||
]; | ||
|
||
@NgModule({ | ||
imports: [RouterModule.forChild(routes)], | ||
exports: [RouterModule] | ||
}) | ||
export class ProblemSolvingRoutingModule { } |
17 changes: 17 additions & 0 deletions
17
src/app/components/problem-solving/problem-solving.module.ts
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
import { NgModule } from '@angular/core'; | ||
import { CommonModule } from '@angular/common'; | ||
|
||
import { ProblemSolvingRoutingModule } from './problem-solving-routing.module'; | ||
import { StringProblemComponent } from './string-problem/string-problem.component'; | ||
|
||
|
||
@NgModule({ | ||
declarations: [ | ||
StringProblemComponent | ||
], | ||
imports: [ | ||
CommonModule, | ||
ProblemSolvingRoutingModule | ||
] | ||
}) | ||
export class ProblemSolvingModule { } |
Empty file.
1 change: 1 addition & 0 deletions
1
src/app/components/problem-solving/string-problem/string-problem.component.html
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
<div [innerHTML]="stringTips"></div> |
25 changes: 25 additions & 0 deletions
25
src/app/components/problem-solving/string-problem/string-problem.component.spec.ts
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
import { ComponentFixture, TestBed } from '@angular/core/testing'; | ||
|
||
import { StringProblemComponent } from './string-problem.component'; | ||
|
||
describe('StringProblemComponent', () => { | ||
let component: StringProblemComponent; | ||
let fixture: ComponentFixture<StringProblemComponent>; | ||
|
||
beforeEach(async () => { | ||
await TestBed.configureTestingModule({ | ||
declarations: [ StringProblemComponent ] | ||
}) | ||
.compileComponents(); | ||
}); | ||
|
||
beforeEach(() => { | ||
fixture = TestBed.createComponent(StringProblemComponent); | ||
component = fixture.componentInstance; | ||
fixture.detectChanges(); | ||
}); | ||
|
||
it('should create', () => { | ||
expect(component).toBeTruthy(); | ||
}); | ||
}); |
23 changes: 23 additions & 0 deletions
23
src/app/components/problem-solving/string-problem/string-problem.component.ts
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
import { AfterViewInit, Component, OnInit } from '@angular/core'; | ||
import { StringTips } from 'src/app/core/problem-solving/string'; | ||
import { HighlightService } from 'src/app/shared/services/highlight-syntax.service'; | ||
|
||
@Component({ | ||
selector: 'app-string-problem', | ||
templateUrl: './string-problem.component.html', | ||
styleUrls: ['./string-problem.component.css'] | ||
}) | ||
export class StringProblemComponent implements OnInit, AfterViewInit { | ||
stringTips = StringTips | ||
constructor( | ||
private highLightCode: HighlightService, | ||
) { } | ||
|
||
ngOnInit(): void { | ||
} | ||
|
||
ngAfterViewInit(): void { | ||
this.highLightCode.highlightAll(); | ||
} | ||
|
||
} |
Oops, something went wrong.