Gradebook Frontend Documentation - v0.0.0
    Preparing search index...

    Component responsible for displaying and managing a list of courses. Shows different courses and provides different functionality based on whether the user is a teacher or student. Teachers can create new courses and see courses they teach. Students can see courses they are enrolled in.

    Implements

    • OnInit
    Index

    Constructors

    Properties

    courses: any[] = []

    List of courses to display

    loading: boolean = false

    Loading state indicator

    user: undefined | User = undefined

    Current authenticated user

    Methods

    • Creates a new course with the provided title and description. Available only for teachers.

      Parameters

      • title: string

        The title of the new course

      • description: string

        The description of the new course

      Returns void

    • Initializes the component and subscribes to user data changes. Loads appropriate courses based on the user's role (teacher or student).

      Returns void