SB-Admin-BS4-Angular-8
Simple Dashboard Admin App built using Angular 8 and Bootstrap 4
Top Related Projects
Material Dashboard Angular
Customizable admin dashboard template based on Angular 10+
CoreUI Angular is free Angular 18 admin template based on Bootstrap 5
AngularJS implementation of the RDash admin dashboard theme
Quick Overview
SB Admin BS4 Angular 8 is a free and open-source admin dashboard template based on Bootstrap 4 and Angular 8. It provides a clean and modern design with a variety of built-in components and pages, making it an excellent starting point for developing admin panels, dashboards, or other web applications.
Pros
- Ready-to-use components and layouts, saving development time
- Responsive design, ensuring compatibility across various devices and screen sizes
- Regular updates and maintenance by the community
- Easy customization and integration with other Angular projects
Cons
- Limited advanced features compared to premium admin templates
- May require additional customization for specific business needs
- Documentation could be more comprehensive
- Some users report occasional issues with newer Angular versions
Code Examples
- Implementing a basic route in the app-routing.module.ts file:
import { NgModule } from '@angular/core';
import { Routes, RouterModule } from '@angular/router';
import { DashboardComponent } from './dashboard/dashboard.component';
const routes: Routes = [
{ path: '', redirectTo: 'dashboard', pathMatch: 'full' },
{ path: 'dashboard', component: DashboardComponent }
];
@NgModule({
imports: [RouterModule.forRoot(routes)],
exports: [RouterModule]
})
export class AppRoutingModule { }
- Creating a simple component with a chart using ng2-charts:
import { Component, OnInit } from '@angular/core';
import { ChartOptions, ChartType, ChartDataSets } from 'chart.js';
import { Label } from 'ng2-charts';
@Component({
selector: 'app-bar-chart',
templateUrl: './bar-chart.component.html'
})
export class BarChartComponent implements OnInit {
public barChartOptions: ChartOptions = {
responsive: true,
};
public barChartLabels: Label[] = ['2015', '2016', '2017', '2018', '2019', '2020'];
public barChartType: ChartType = 'bar';
public barChartLegend = true;
public barChartData: ChartDataSets[] = [
{ data: [65, 59, 80, 81, 56, 55], label: 'Series A' },
{ data: [28, 48, 40, 19, 86, 27], label: 'Series B' }
];
constructor() { }
ngOnInit() {
}
}
- Implementing a data table using ngx-datatable:
import { Component, OnInit } from '@angular/core';
@Component({
selector: 'app-data-table',
template: `
<ngx-datatable
[rows]="rows"
[columns]="columns"
[headerHeight]="50"
[footerHeight]="50"
[rowHeight]="'auto'"
[limit]="10">
</ngx-datatable>
`
})
export class DataTableComponent implements OnInit {
rows = [
{ name: 'Austin', gender: 'Male', company: 'Swimlane' },
{ name: 'Dany', gender: 'Female', company: 'KFC' },
{ name: 'Molly', gender: 'Female', company: 'Burger King' },
];
columns = [
{ prop: 'name' },
{ name: 'Gender' },
{ name: 'Company' }
];
constructor() { }
ngOnInit() {
}
}
Getting Started
-
Clone the repository:
git clone https://github.com/start-angular/SB-Admin-BS4-Angular-8.git
-
Navigate to the project directory:
cd SB-Admin-BS4-Angular-8
-
Install dependencies:
npm install
-
Start the development server:
Competitor Comparisons
Material Dashboard Angular
Pros of Material Dashboard Angular2
- Utilizes Material Design, offering a modern and sleek UI out of the box
- Includes more pre-built components and pages, reducing development time
- Better documentation and support from Creative Tim
Cons of Material Dashboard Angular2
- Less customizable compared to SB Admin BS4 Angular 8
- Steeper learning curve for developers unfamiliar with Material Design
- Larger bundle size due to additional Material Design dependencies
Code Comparison
Material Dashboard Angular2:
import { Component, OnInit } from '@angular/core';
import * as Chartist from 'chartist';
@Component({
selector: 'app-dashboard',
templateUrl: './dashboard.component.html'
})
export class DashboardComponent implements OnInit {
// Component logic
}
SB Admin BS4 Angular 8:
import { Component, OnInit } from '@angular/core';
import { routerTransition } from '../../router.animations';
@Component({
selector: 'app-dashboard',
templateUrl: './dashboard.component.html',
styleUrls: ['./dashboard.component.scss'],
animations: [routerTransition()]
})
export class DashboardComponent implements OnInit {
// Component logic
}
The main differences in the code snippets are:
- Material Dashboard uses Chartist for charts, while SB Admin uses custom animations.
- SB Admin includes additional styling and animation configurations.
Both repositories provide solid foundations for admin dashboards, with Material Dashboard offering a more opinionated design approach and SB Admin providing greater flexibility for customization.
Customizable admin dashboard template based on Angular 10+
Pros of ngx-admin
- More comprehensive and feature-rich, offering a wider range of UI components and layouts
- Better documentation and community support, with regular updates and active maintenance
- Includes multiple color schemes and themes out of the box
Cons of ngx-admin
- Steeper learning curve due to its complexity and extensive features
- Potentially heavier and slower performance for simpler applications
- May require more customization to remove unnecessary components for basic projects
Code Comparison
SB-Admin-BS4-Angular-8:
import { Component, OnInit } from '@angular/core';
import { routerTransition } from '../../router.animations';
@Component({
selector: 'app-dashboard',
templateUrl: './dashboard.component.html',
styleUrls: ['./dashboard.component.scss'],
animations: [routerTransition()]
})
ngx-admin:
import { Component } from '@angular/core';
import { MENU_ITEMS } from './pages-menu';
@Component({
selector: 'ngx-pages',
styleUrls: ['pages.component.scss'],
template: `
<ngx-one-column-layout>
<nb-menu [items]="menu"></nb-menu>
<router-outlet></router-outlet>
</ngx-one-column-layout>
`,
})
The code comparison shows that ngx-admin uses a more modular approach with separate menu configuration and a one-column layout component, while SB-Admin-BS4-Angular-8 uses a more traditional component structure with animations.
CoreUI Angular is free Angular 18 admin template based on Bootstrap 5
Pros of CoreUI Free Angular Admin Template
- More comprehensive UI components and layouts
- Better documentation and support
- Regular updates and active maintenance
Cons of CoreUI Free Angular Admin Template
- Steeper learning curve due to more complex structure
- Potentially more bloated for simpler projects
- Some advanced features reserved for paid version
Code Comparison
SB Admin BS4 Angular 8:
import { BrowserModule } from '@angular/platform-browser';
import { NgModule } from '@angular/core';
import { AppRoutingModule } from './app-routing.module';
import { AppComponent } from './app.component';
CoreUI Free Angular Admin Template:
import { BrowserModule } from '@angular/platform-browser';
import { NgModule } from '@angular/core';
import { LocationStrategy, HashLocationStrategy } from '@angular/common';
import { BrowserAnimationsModule } from '@angular/platform-browser/animations';
import { PerfectScrollbarModule } from 'ngx-perfect-scrollbar';
The CoreUI template includes additional imports for enhanced functionality, such as animations and scrollbar customization, while SB Admin keeps it simpler with basic Angular imports.
Both templates provide solid foundations for admin dashboards, but CoreUI offers more features and customization options at the cost of increased complexity. SB Admin is more straightforward and may be better suited for smaller projects or developers new to Angular admin templates.
AngularJS implementation of the RDash admin dashboard theme
Pros of rdash-angular
- Lightweight and minimalistic design, focusing on essential dashboard components
- Easy to customize and extend due to its simple structure
- Better performance due to fewer dependencies and lighter codebase
Cons of rdash-angular
- Less feature-rich compared to SB-Admin-BS4-Angular-8
- Older project with less frequent updates
- May require more manual work to implement advanced features
Code Comparison
rdash-angular:
<div id="page-wrapper" ng-class="{'open': toggle}" ng-cloak>
<div id="sidebar-wrapper">
<ul class="sidebar">
<li class="sidebar-main">
<a ng-click="toggleSidebar()">
Dashboard
<span class="menu-icon glyphicon glyphicon-transfer"></span>
</a>
</li>
</ul>
</div>
</div>
SB-Admin-BS4-Angular-8:
<nav class="sb-topnav navbar navbar-expand navbar-dark bg-dark">
<a class="navbar-brand" [routerLink]="['/']">Start Bootstrap</a>
<button class="btn btn-link btn-sm order-1 order-lg-0" id="sidebarToggle" href="#">
<i class="fas fa-bars"></i>
</button>
<!-- Navbar Search-->
<form class="d-none d-md-inline-block form-inline ml-auto mr-0 mr-md-3 my-2 my-md-0">
<!-- ... -->
</form>
</nav>
Both repositories provide Angular-based admin dashboard templates, but they differ in their approach and feature set. rdash-angular offers a more lightweight and customizable solution, while SB-Admin-BS4-Angular-8 provides a more comprehensive and feature-rich template out of the box.
Convert designs to code with AI
Introducing Visual Copilot: A new AI model to turn Figma designs to high quality code using your components.
Try Visual CopilotREADME
SB Admin rewritten in Angular 13 and Bootstrap 5
Simple Dashboard Admin App built using Angular 13 and Bootstrap 5
This project is a port of the famous Free Admin Bootstrap Theme SB Admin v8.0 to Angular 13 Theme.
Powered by StartAngular & StrapUI
Demo
SB Admin Material version
This project was generated with Angular CLI version 13.2.2.
Introduction
Provides fast, reliable and extensible starter for the development of Angular projects.
sb-admin-bs5-angular13
provides the following features:
- Developed using boostrap-v6.0.0
- angular-v13.2.2
- angular/cli-v13.2.2
- ng-bootstrap-v12.0.0
- ngx-translate-v14.0.0
- Following the best practices.
- Ahead-of-Time compilation support.
- Official Angular i18n support.
- Production and development builds.
- Tree-Shaking production builds.
How to start
Note that this seed project requires node >=v12.0.0 and npm >=6.
In order to start the project use:
$ git clone https://github.com/start-angular/SB-Admin-BS4-Angular-8.git
$ cd SB-Admin-BS4-Angular-8
# install the project's dependencies
$ npm install
# watches your files and uses livereload by default run `npm start` for a dev server. Navigate to `http://localhost:4200/`. The app will automatically reload if you change any of the source files.
$ npm start
# prod build, will output the production application in `dist`
# the produced code can be deployed (rsynced) to a remote server
$ npm run build
Code scaffolding
Run ng generate component component-name
to generate a new component. You can also use ng generate directive/pipe/service/class/module
.
Running unit tests
Run ng test
to execute the unit tests via Karma.
Running end-to-end tests
Run ng e2e
to execute the end-to-end tests via Protractor.
Before running the tests make sure you are serving the app via ng serve
.
Further help
To get more help on the Angular CLI use ng help
or go check out the Angular CLI README.
Top Related Projects
Material Dashboard Angular
Customizable admin dashboard template based on Angular 10+
CoreUI Angular is free Angular 18 admin template based on Bootstrap 5
AngularJS implementation of the RDash admin dashboard theme
Convert designs to code with AI
Introducing Visual Copilot: A new AI model to turn Figma designs to high quality code using your components.
Try Visual Copilot