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({ | |
selector: 'course', | |
templateUrl: './course.component.html' | |
}) | |
export class CourseComponent implements AfterViewInit { | |
@ViewChild(MatPaginator) paginator: MatPaginator; | |
ngAfterViewInit() { |
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 { MatInputModule, MatPaginatorModule, MatProgressSpinnerModule, | |
MatSortModule, MatTableModule } from "@angular/material"; | |
@NgModule({ | |
declarations: [ | |
... | |
], | |
imports: [ | |
BrowserModule, |
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
<!-- commonly used JS bundles --> | |
<script src="https://code.jquery.com/jquery-3.2.1.slim.min.js" ></script> | |
<script src="http://getbootstrap.com/dist/js/bootstrap.min.js"></script> | |
... | |
<!-- register the Service Worker --> | |
<script src="sw-register.js"></script> | |
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
{ | |
"sub": "353454354354353453", | |
"exp": 1504699256 | |
} | |
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
{ | |
"name": "John Doe", | |
"email": "[email protected]", | |
"admin": true | |
} | |
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({ | |
selector: 'app-root', | |
template: ` | |
<ng-template> | |
<button class="tab-button" | |
(click)="login()">{{loginText}}</button> | |
<button class="tab-button" | |
(click)="signUp()">{{signUpText}}</button> | |
</ng-template> |
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 {HttpClientModule} from '@angular/common/http'; | |
@NgModule({ | |
declarations: [ | |
AppComponent | |
], | |
imports: [ | |
BrowserModule, | |
HttpClientModule | |
], |
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
<p>A Bootstrap Primary Button:</p> | |
<button class="btn btn-primary">Button</button> | |
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({ | |
selector: 'app-root', | |
template: ` | |
<h1>FA Input</h1> | |
<fa-input icon="envelope" (value)="onNewValue($event)"></fa-input> | |
<fa-input icon="lock" (value)="onNewValue($event)"></fa-input> |
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
<input placeholder="Type Your Search"> | |