This file contains hidden or 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
| Country list chart prepared by Author: Rakshit Shah (Github/Rakshitshah94) | |
| +-----------------------------------+-----------------------+-------------------------------+-----------------------+ | |
| | Country Name | ISO Country Code | Country Name | ISO Country Code | | |
| +-----------------------------------+-----------------------+-------------------------------+-----------------------+ | |
| | AF Afghanistan | AF | AL Albania | AL | | |
| | DZ Algeria | DZ | AD Andorra | AD | | |
| | AO Angola | AO | AG Antigua and Barbuda | AG | | |
| | AR Argentina | AR | AM Armenia | AM | | |
| | AU Australia | AU | AT Austria | AT | | |
| | AZ Azerb |
This file contains hidden or 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
| import { NgModule } from '@angular/core'; | |
| import { BrowserModule } from '@angular/platform-browser'; | |
| import { FormsModule } from '@angular/forms'; | |
| import { AppComponent } from './app.component'; | |
| import { OnlineStatusModule } from 'ngx-online-status'; | |
| @NgModule({ | |
| imports: [ | |
| BrowserModule, | |
| FormsModule, |
This file contains hidden or 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
| import { Component } from '@angular/core'; | |
| import { OnlineStatusService, OnlineStatusType } from 'ngx-online-status'; | |
| @Component({ | |
| selector: 'app-root', | |
| templateUrl: './app.component.html', | |
| styleUrls: ['./app.component.css'] | |
| }) | |
| export class AppComponent { | |
| status: OnlineStatusType; //Enum provided by ngx-online-status |
This file contains hidden or 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
| <div | |
| class="status" | |
| [class.offline]="status === onlineStatusCheck.OFFLINE" | |
| ></div> | |
| <div style="text-align:center"> | |
| <h1> | |
| Detect Internet Status Online Offline Demo | |
| </h1> | |
| <h2> |
This file contains hidden or 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
| <kendo-grid [data]="gridData" [pageSize]="state.take" [skip]="state.skip" [sort]="state.sort" [group]="state.group" | |
| [sortable]="{ mode: 'multiple' }" [pageable]="true" [groupable]="{ showFooter: true }" | |
| (dataStateChange)="dataStateChange($event)"> | |
| <kendo-grid-column field="Order_id" title="Product ID" width="150"> | |
| <ng-template kendoGridHeaderTemplate> | |
| <input | |
| type="checkbox" | |
| (change)="checkGroup(group)" | |
| class="k-checkbox" | |
| id="selectAllCheckboxPrintId" |
This file contains hidden or 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
| import { Component, ViewChildren, QueryList } from '@angular/core'; | |
| import { DataStateChangeEvent } from '@progress/kendo-angular-grid'; | |
| import { GroupResult, process, State } from '@progress/kendo-data-query'; | |
| export class pro { | |
| Order_id: boolean = true; | |
| ProductName: boolean = false; | |
| constructor() { | |
| //Object.assign(this,values); //if requres | |
| } | |
| } |
This file contains hidden or 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
| @Injectable({ | |
| providedIn: 'root' | |
| }) | |
| export class UsersService { | |
| constructor (private http: HttpClient) {} | |
| getUsers() { | |
| return this.http.get(API_ENDPOINT); | |
| } |
This file contains hidden or 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
| import { ScrollingModule } from '@angular/cdk/scrolling'; | |
| @NgModule({ | |
| ..., | |
| imports: [ | |
| ..., | |
| ScrollingModule | |
| ], |
This file contains hidden or 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
| @Component({ | |
| template: ` | |
| {{item.id}} | |
| `, | |
| }) | |
| export class SampleComponent { | |
| constructor() { | |
| this.items = [ |
This file contains hidden or 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
| export class ROUTE { | |
| public static readonly LOGIN = '/login'; | |
| public static readonly RECRUITMENTS = '/recruitments'; | |
| public static readonly RECRUITMENT_EDIT = '/recruitments/:id'; | |
| } | |