Skip to content
Advertisement

Tag: angular9

How to detect changes in child component with respect to changes in the base component – Angular

I have a component profile.component.ts in which there’s a variable, this.candidate, which subscribes to and gets updated like this This component acts like a base component and there’s a child component that extends this component, Now I want to have another variable in this child component that updates itself whenever this.candidate gets updated in the base component. Something like this:

Angular: Date Timezone Global parameter setting

I am searching for a way to Convert all-new Dates upon construction/declaration to Pacific Standard time. (Without every developer in team manually setting the timezone) Additionally, dates displayed should be showed in Pacific Timezone when displaying in HTML, console.log, etc How can this be done? Is there a global parameter in Angular to set this, maybe in the config files?

Advertisement