Skip to content

Commit

Permalink
Integrated NQueen Visualizer
Browse files Browse the repository at this point in the history
  • Loading branch information
Shariq2003 committed Nov 1, 2024
1 parent 2f5dca3 commit 84dac7b
Show file tree
Hide file tree
Showing 7 changed files with 733 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/app/app.module.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,9 @@ import { NgModule } from '@angular/core';
import { BrowserModule } from '@angular/platform-browser';
import { RouterModule } from '@angular/router';
import { ToastrModule } from 'ngx-toastr';
import { FormsModule } from '@angular/forms';
import { BrowserAnimationsModule } from '@angular/platform-browser/animations'; // Import this module for animations
import { provideAnimations } from '@angular/platform-browser/animations';

import { AppComponent } from './app.component';

@NgModule({
Expand All @@ -13,6 +13,7 @@ import { AppComponent } from './app.component';
],
imports: [
BrowserModule,
FormsModule,
BrowserAnimationsModule, // Required for toastr animations
RouterModule.forRoot([]), // Define your routes here
ToastrModule.forRoot(), // Initialize Toastr globally
Expand Down
5 changes: 5 additions & 0 deletions src/app/app.routes.ts
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@ import { ContributorsComponent } from './components/contributors/contributors.co
import { CodeEditorComponent } from './components/code-editor/code-editor.component';
import { ReviewComponent } from './components/reviews/reviews.component';
import { PageNotFoundComponent } from './components/page-not-found/page-not-found.component';
import { NQueenVisualizerComponent } from './components/n-queen-visualizer/n-queen-visualizer.component'


import { AlgorithmComparisonComponent } from './components/algocompare/algocompare.component';
Expand Down Expand Up @@ -92,6 +93,10 @@ export const routes: Routes = [
path: 'pagenotfound',
component: PageNotFoundComponent,
},
{
path: 'n-queen-visualizer',
component: NQueenVisualizerComponent,
},
// {
// path: 'algo-compare',
// component: AlgorithmComparisonComponent,
Expand Down
Loading

0 comments on commit 84dac7b

Please sign in to comment.