ultimatecourses/angular-pro-src

Can not see shadow-root

Closed this issue · 1 comments

Hello, I am doing (already bought) the pro course in Ultimate Angular and even that it works (it applies the placeholder, sets the 'email' class and focuses the input, I can't see the shadow-root element in the console.

  ngAfterViewInit() {
    this.renderer.setElementAttribute(this.email.nativeElement, 'placeholder', 'Enter your email address');
    this.renderer.setElementClass(this.email.nativeElement, 'email', true);
    this.renderer.invokeElementMethod(this.email.nativeElement, 'focus');
    // this.email.nativeElement.setAttribute('placeholder', 'Enter your email address');
    // this.email.nativeElement.classList.add('email');
    // this.email.nativeElement.focus();
    if (this.message) {
      // setTimeout(() => {
        this.message.forEach((message) => {
          message.days = 30;
        });
        this.cd.detectChanges();
      // })
    }
  }

screen shot 2017-11-23 at 2 57 50 pm

Thanks