Can't bind to 'aria-valuenow' since it isn't a known property of 'div'

Source: https://stackoverflow.com/questions/39161088/cant-bind-to-aria-valuenow-since-it-isnt-a-known-property-of-div


Angular2 binding is property binding by default. There is no aria-valuenow property on div if there is no directive or component applied that has such an @Input()
Use instead explicit attribute binding
attr.aria-valuenow="{{MY_PREC}}" 
or
[attr.aria-valuenow]="MY_PREC" 

Call static function from angular template

Source: https://stackoverflow.com/questions/41857047/call-static-function-from-angular2-template

Only instance members of the components class can be called from the view.
If you want to call static members, you need to provide a getter in the component.
export class MyComponent {
  parseDate = DateService.parseDate;
}
then you can use it like
(input)="event.date=parseDate($event.target.value)"
You can declare a field in your component that will make the class accessible for your template.
export class YourComponent {
    public DateService= DateService;
}

StaticImage

  import React , { useEffect , useRef } from "react" import { StaticImage } from "gatsby-plugin-image" impor...