Quantcast
Channel: Ionic Forum - Latest topics
Viewing all articles
Browse latest Browse all 70612

Styling is not applied to buttons in components

$
0
0

@willb wrote:

If I add a component to the conference app:

import {Component} from 'angular2/core';

@Component({
  selector: 'my-button',
  template: '<button outline primary>test button</button>'
})
export class MyButton {}

.. it looks grey and doesn't have any of the normal styling.
If I include the same HTML in the page template the styling is applied:

<h4>Ionic Conference</h4>
<my-button></my-button>
<button outline primary>test button</button>

How can I get styling on the button within the component?

(Using: "ionic-framework": "2.0.0-alpha.42")

Posts: 1

Participants: 1

Read full topic


Viewing all articles
Browse latest Browse all 70612

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>