Skip to content

Instantly share code, notes, and snippets.

View aimanrahmattt's full-sized avatar
🏠
Working from home

Aiman Rahmat aimanrahmattt

🏠
Working from home
View GitHub Profile
@aimanrahmattt
aimanrahmattt / app.component.ts
Created November 27, 2019 14:42
app.component.ts
import { Component, OnInit } from '@angular/core';
import { faCar } from '@fortawesome/free-solid-svg-icons';
import { FormGroup, FormBuilder, Validators } from '@angular/forms';
@Component({
selector: 'app-root',
templateUrl: './app.component.html',
styleUrls: ['./app.component.scss']
})
export class AppComponent implements OnInit {
@aimanrahmattt
aimanrahmattt / app.module.ts
Last active November 29, 2019 14:49
app.module.ts
import { BrowserModule } from '@angular/platform-browser';
import { NgModule } from '@angular/core';
import { AppRoutingModule } from './app-routing.module';
import { AppComponent } from './app.component';
import { FontAwesomeModule } from '@fortawesome/angular-fontawesome';
import { ReactiveFormsModule, FormsModule } from '@angular/forms';
@NgModule({
declarations: [
@aimanrahmattt
aimanrahmattt / app.component.html
Last active November 27, 2019 14:42
Angular 8 Form Validation
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta http-equiv="X-UA-Compatible" content="ie=edge">
<title>Document</title>
</head>
<body>