murday1983 murday1983 - 11 months ago 57
AngularJS Question

Add A Tick To Button When Selected In Angular 2 App

I am complety new to

Angular 2
and im after do a custom button display when selected. For questions i have 2 buttons for the answer which only one is allowed to be selected (i have all this working) but what id like to do is add a tick in from of the selected buttons value.

I know it will need to be done in
which is fine but i dont know how to do it.

I tried the below but it doesnt seem to work,
font-family:'Glyphicons Halflings';

Below is an example of what i want. When the button not selected or un-selected the button should just say 'Yes' and obviously have a different colour

enter image description here

Answer Source

Try this:,
    position: relative;
    text-align: center;
    display: block;
    font-family:'Glyphicons Halflings';
    font-size: 20px;
    position: absolute;
    top: 7px; // adjust as per your need
    left: 110px; // adjust as per your need