Skip to content

Trouble creating or cloning new pages #28

@handsoffred

Description

@handsoffred

Hi- I'm having a lot of trouble figuring out how to extend this code for my project, specifically how to re-use your custom elements like "base-card", "app-sliders", etc. I'm still relatively new to Angular code organization.

For example, I tried to figure out how your "base-card" element finds its way into ChartsComponent, and using that as an template for how to have elements in my new pages. It appears (see diagram) that this comes across via ThemeModule. But when I clone all the files in charts/ and swap all "chart" names with, say, "about" to create a new About page, I get nothing but errors like "Template parse errors: 'base-card' is not a known element".

Do you have a step-by-step suggestion for how to create a new page that can leverage all your beautiful components?

mat-ang-db diagram

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions