Closed alessandro308 closed 4 years ago
If I define the md file as
---
name: Button
category: Components
---
Buttons can be used with `<a>`, `<button>`, and `<input>` elements.
Types of buttons:
- Default: Standard button
- Primary: Provides extra visual weight and identifies the primary action in a set of buttons
- Success: Indicates a successful or positive action
```button.html
<dmt-button type="control" label="control"></dmt-button>
<dmt-button type="control" label="background='full'" background="full"></dmt-button>
<dmt-button type="control" label="radius='less'" radius="less"></dmt-button>
<dmt-button type="control" label="border='light'" border="light"></dmt-button>
<dmt-button type="control" label="border='false'" border="false"></dmt-button>
<dmt-button type="control" label="size='full'" size="full"></dmt-button>
<dmt-button type="control" label="size='big'" size="big"></dmt-button>
<dmt-button type="control" label="icon='changes'" icon="changes"></dmt-button>
```
```button.angularjs
```
angular is executed but returns this error: https://code.angularjs.org/1.5.9/docs/error/ng/areq?p0=stylemark--&p1=not%20a%20function,%20got%20undefined
This was my issue. I was importing the wrong file.
I have created the following config file
And the following code
But this is rendered as HTML, and is not managed my angular