Warning: Use of undefined constant MDB_STRIPE_SUB_WEBHOOK_SECRET - assumed 'MDB_STRIPE_SUB_WEBHOOK_SECRET' (this will throw an Error in a future version of PHP) in /var/www/acc01/wp-content/themes/mdbootstrap4/inc/mdb-subscriptions/mdb-payments/stripe/class-mdb-stripe-webhook.php on line 26

Warning: Use of undefined constant MDB_PAYPAL_WEBHOOK_ID - assumed 'MDB_PAYPAL_WEBHOOK_ID' (this will throw an Error in a future version of PHP) in /var/www/acc01/wp-content/themes/mdbootstrap4/inc/mdb-subscriptions/mdb-payments/paypal/class-mdb-paypal-webhook.php on line 23

Notice: Undefined index: HTTP_REFERER in /var/www/acc01/wp-content/themes/mdbootstrap4/inc/cookie-setter.php on line 8
Angular 6 Tutorial console log issues - Material Design for Bootstrap

Angular 6 Tutorial console log issues


Topic: Angular 6 Tutorial console log issues

mdewell asked 3 years ago

When trying to run the following code in a Windows 10 64-bit environment and a Chrome ver. 67.0.3396.99
import { Component } from '@angular/core';

  @Component({
    selector: 'mdb-root',
    templateUrl: 'app.component.html',
    styleUrls: ['app.component.css']

  })

  export class AppComponent {

    constructor(){
      this.onStartup();
    }

  onStartup(){
    console.log('Hello TS World');
  }
  }
I get an error: ERROR Error: The selector "mdb-root" did not match any elements at DefaultDomRenderer2.push../node_modules/@angular/platform-browser/fesm5/platform-browser.js.DefaultDomRenderer2.selectRootElement (platform-browser.js:1223) I am enjoying the tutorial, and would even like to help with the grammar of text write-up of it, if you want, but I want to have success going through it.

Damian Gemza staff commented 3 years ago

Dear mdewell, In @Component please change the selector from 'mdb-root' to 'app-root'. After that, it should work fine. Best Regards, Damian

Please insert min. 20 characters.
Status

Resolved

Specification of the issue
  • User: Free
  • Premium support: No
  • Technology: MDB Angular
  • MDB Version: -
  • Device: -
  • Browser: -
  • OS: -
  • Provided sample code: No
  • Provided link: No