This file contains 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
<br> | |
<br> | |
<body style="background-image:url(https://digitalample.com/wp-content/uploads/2016/07/Software-Companies-In-Nepal.jpg); height:500px"> | |
<div class="container"> | |
<h1> Crowd Sourced Training</h1> | |
<button class="btn btn-default" (click)="login()" style="text-align:center">Login With Google</button> | |
</div> | |
</body> |
This file contains 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": "ng-fundamentals", | |
"version": "0.0.0", | |
"scripts": { | |
"ng": "ng", | |
"start": "ng serve", | |
"build": "ng build", | |
"test": "ng test", | |
"lint": "ng lint", | |
"e2e": "ng e2e" |
This file contains 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 { Injectable } from '@angular/core'; | |
import { HttpClient } from '@angular/common/http'; | |
import { AngularFireDatabase, AngularFireList } from 'angularfire2/database'; | |
import { Observable } from 'rxjs/Observable'; | |
import 'rxjs/add/operator/catch'; | |
import { catchError } from 'rxjs/operators'; | |
@Injectable() | |
export class VDataService { |
This file contains 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 { AngularFireDatabase, AngularFireList } from 'angularfire2/database'; | |
import { Router } from '@angular/router'; | |
import { FormControl, FormGroup, FormBuilder, Validators, FormArray } from '@angular/forms'; | |
import { TrainData } from '../Train/trainin.class'; | |
import { QData } from '../Train/trainin.class'; | |
import { DData } from '../Train/trainin.class'; | |
import { VDataService } from '../Services/videoData.service'; | |
This file contains 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
app-menu></app-menu> | |
<h3 class="text-center">Publish Course</h3> | |
<form [formGroup]="vForm"> | |
<div class="form"> | |
<label for="usr">Cour Name: </label> | |
<input type="text" formControlName="name" class="form-control" id="name" required> | |
<div *ngIf="vForm.controls['name'].errors && !vForm.controls['name'].pristine" class="error-msg"> | |
<div [hidden]="!vForm.controls['name'].errors.required">Name is required.</div> | |
</div> |
This file contains 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 { VideoDataService } from "../Services/videoData.service"; | |
@Component({ | |
selector: "app-pro", | |
templateUrl: "./pro.component.html", | |
styleUrls: ["./pro.component.css"] | |
}) | |
export class ProgressComponent { | |
trainpen = 0; |
This file contains 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
<app-menu></app-menu> | |
<div class="main"> | |
<div class="card card-body bg-light">Hi</div> | |
<br> | |
<p class="alert alert-info col-sm-6"> | |
Number of ginger Completed :{{trainCom}} | |
<button type="button" class="btn btn-primary" (click)="cour_Comp()" >View</button> | |
<div id="demo" *ngFor='let cour of this.com_cour'> | |
<span *ngIf="this.com_cour != NULL"><button type="button" class="btn btn-primary" ng-show="this.com_cour != NULL">{{course}}</button></span> | |
</div> |