Error when adding bootstrap button

Hello,
I’m on episode 4 “Adding Bootstrap” in lecture 4 and I’m getting an error when I’m adding bootstrap.
I’ve imported Bootstrap to the styles.css file and my courses.components.ts code looks like this:

import { Component } from '@angular/core';

@Component({
    selector: 'courses',
    template: `
    <button class="btn btn-primary">Save</button>
    `
})
export class CoursesComponent {

}

The button doesn’t appear on my localhost, and also i’m getting errors when i’m trying to add padding to the body in the styles.css file.

Why is that?
Thank you

Are you sure you imported bootstrap correctly? (can you copy the import statement from styles.css?)

Also:

Please specify what error you got.

1 Like