An error has occurred with the template causing an issue.
ProviderComponent.html:4 ERROR TypeError: Cannot read property 'ProviderName' of undefined
at Object.eval [as updateDirectives] (ProviderComponent.html:4)
at...
provider.component.html
<div class="form-row">
<div class="form-group col-6">
<input class="form-control" name="ProviderName" #ProviderName="ngModel"
[(ngModel)]="providerService.selectedProvider.ProviderName" placeholder="Provider Name"
required>
</div>
...
app.module.ts
import { BrowserModule } from '@angular/platform-browser';
import { NgModule } from '@angular/core';
...
proivder.service.ts:
import { Injectable } from '@angular/core';
...
provider.component.ts:
import { Component, OnInit } from '@angular/core';
import { ProviderService } from '../shared/provider.service';
...