Skip to content

embedding chart.js not required, use vendor.ts to import #679

Closed
@skliffmueller

Description

@skliffmueller

Embedding in index.html is not required.

<script src="node_modules/chart.js/src/chart.js"></script>

Just add this to your vendor.ts file

import 'chart.js/src/chart.js';

I'm sure using minified versions work just the same. This is how I've always include third party libraries on angular2. I don't know if there is a specific reason as to why embedding to index.html was done, but thought I'd make this ticket as an opportunity for discussion.

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