Skip to content

Instantly share code, notes, and snippets.

View AhsanNissar's full-sized avatar
🎯
Focusing

Ehsan Nissar AhsanNissar

🎯
Focusing
  • Bobtail
  • Lahore
  • 10:04 (UTC -12:00)
View GitHub Profile
@Component({
selector: 'app-student-list',
templateUrl: './student-list.component.html',
styleUrls: ['./student-list.component.css'],
animations: [appModuleAnimation()]
})
export class StudentListComponent extends PagedListingComponentBase<StudentListDto> {
students: StudentListDto[] | undefined;
// student list Dto starts here
export interface IStudentListDto {
firstName: string | undefined;
lastName: string | undefined;
middleName: string | undefined;
fatherName: string | undefined;
dateOfBirth: string | undefined;
guardianName: string | undefined;
gender: string | undefined;
GetSchoolStudents(schoolName: string): Observable<ListResultDtoOfStudentDto> {
let url_ = this.baseUrl + "/api/services/app/Student/GetSchoolStudents?";
if (schoolName === undefined || schoolName === null)
throw new Error("The parameter 'schoolName' must be defined and cannot be null.");
else
url_ += "schoolName=" + encodeURIComponent("" + schoolName);
url_ = url_.replace(/[?&]$/, "");
let options_: any = {
observe: "response",
<app-loading-spinner *ngIf="showSpinner"></app-loading-spinner>
<div *ngIf="!showSpinner" class="row clearfix" [@routerTransition]>
<div class="col-lg-12 col-md-12 col-sm-12 col-xs-12">
<div class="card main-content">
<div class="header">
<h4 class="modal-title">
<span>Students</span>
</h4>
<ul class="header-dropdown m-r--5">
<i class="fa fa-spin fa-spinner" *ngIf="isTableLoading"></i>