-77%
Version :
Latest Version
Rs1,660.00 Original price was: Rs1,660.00.Rs385.00Current price is: Rs385.00.
|
|
ng new materil-admin --routing
cd materil-admin
ng add @angular/material
src/
app/
components/
dashboard/
users/
settings/
shared/
app-routing.module.ts
app.component.ts
app.module.ts
<mat-sidenav-container>
<mat-sidenav mode="side" opened>
<mat-toolbar color="primary">Materil Admin</mat-toolbar>
<mat-nav-list>
<a mat-list-item routerLink="/dashboard">Dashboard</a>
<a mat-list-item routerLink="/users">Users</a>
<a mat-list-item routerLink="/settings">Settings</a>
</mat-nav-list>
</mat-sidenav>
<mat-sidenav-content>
<mat-toolbar color="primary">
<span>Admin Panel</span>
</mat-toolbar>
<router-outlet></router-outlet>
</mat-sidenav-content>
</mat-sidenav-container>
import { NgModule } from '@angular/core';
import { RouterModule, Routes } from '@angular/router';
import { DashboardComponent } from './components/dashboard/dashboard.component';
import { UsersComponent } from './components/users/users.component';
import { SettingsComponent } from './components/settings/settings.component';
const routes: Routes = [
{ path: 'dashboard', component: DashboardComponent },
{ path: 'users', component: UsersComponent },
{ path: 'settings', component: SettingsComponent },
{ path: '', redirectTo: '/dashboard', pathMatch: 'full' }
];
@NgModule({
imports: [RouterModule.forRoot(routes)],
exports: [RouterModule]
})
export class AppRoutingModule {}
<div class="dashboard">
<h2>Dashboard</h2>
<div class="cards">
<mat-card class="card">
<mat-card-header>
<mat-card-title>Users</mat-card-title>
</mat-card-header>
<mat-card-content>
<p>Total Users: 120</p>
</mat-card-content>
</mat-card>
<mat-card class="card">
<mat-card-header>
<mat-card-title>Sales</mat-card-title>
</mat-card-header>
<mat-card-content>
<p>Total Sales: $1500</p>
</mat-card-content>
</mat-card>
</div>
</div>
<h2>Users</h2>
<mat-table [dataSource]="users">
<ng-container matColumnDef="name">
<mat-header-cell *matHeaderCellDef>Name</mat-header-cell>
<mat-cell *matCellDef="let user">{{ user.name }}</mat-cell>
</ng-container>
<ng-container matColumnDef="email">
<mat-header-cell *matHeaderCellDef>Email</mat-header-cell>
<mat-cell *matCellDef="let user">{{ user.email }}</mat-cell>
</ng-container>
<mat-header-row *matHeaderRowDef="displayedColumns"></mat-header-row>
<mat-row *matRowDef="let row; columns: displayedColumns;"></mat-row>
</mat-table>
import { Component } from '@angular/core';
@Component({
selector: 'app-users',
templateUrl: './users.component.html',
})
export class UsersComponent {
displayedColumns: string[] = ['name', 'email'];
users = [
{ name: 'John Doe', email: '[email protected]' },
{ name: 'Jane Doe', email: '[email protected]' },
// Add more users as needed
];
}
<h2>Settings</h2>
<form>
<mat-form-field>
<mat-label>Site Title</mat-label>
<input matInput>
</mat-form-field>
<mat-form-field>
<mat-label>Email</mat-label>
<input matInput>
</mat-form-field>
<button mat-raised-button color="primary">Save</button>
</form>
styles.css
.
1. All digital products are the most recent version, with no possibility of free updates. After payment, you can request an update to the most recent version for 5 days if a new version is released. We free support within 5 days.
2. If a license is required (Excludes WHMCS license , we provide only method not license), please contact us via email or ticket for assistance with activation. Our license is only valid for activation and does not include support.
3. We provide Mobile, PHP script installation services for $19.90 / ₹1700. Please create a backup after installation as we do not support re-installation. For mobile app source code, we do not offer installation services.
4. If you have any questions, please contact us by email [email protected] or create a ticket on this page
5. Please note that any digital products presented on the website do not contain malicious code, viruses or advertising. You will receive the original files from the developers. We do not sell any products that have been downloaded from other websites.
6. The response time can last up to 6 hours.
No account yet?
Create an Account