title: Button not clickable until an option (div-tag) has been selected | Angular 1.5
body: <p><strong>Introduction about my problem</strong></p>
  
  <p>In my app the user will be presented with some options (clickable div tags). The user <strong>must</strong> select <strong>one</strong> option to be able to click the "Klar"-button (see image). Also, when an option has been selected, the borders (CSS) of the options needs to change as well with the colour of the button. Because I'm quite new to Angular and unexperienced I'm turning to you wonderful people at Stackoverflow.</p>
  
  <p><strong>Here's the image:</strong> (the text is in Swedish if anyone was wondering)</p>
  
  <p><a href="https://i.stack.imgur.com/HAnkg.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/HAnkg.png" alt="enter image description here"></a></p>
  
  <p><strong>So, here's what I need help with:</strong></p>
  
  <ol>
  <li>Making the button clickable <strong>only</strong> when a user has selected <strong>one</strong> option.</li>
  <li>Changing the style of the options border when being clicked, also changing the colour of the button.</li>
  </ol>
  
  <p><strong>NOTE:</strong> I had to wait 90 minutes because I posted another question before. However I started to think how I should make the button clickable when a user has selected an option. What if putting a counter that increases when a user has pressed an option? But the span of the counter can only be 0 and 1. Because it can only be one (1) option selected.</p>
  
  <p>0 = not selected an option, which means no clickable button
  1 = selected an option, which means clickable button. </p>
  
  <p>It might be a dumb idea, but I wanted to share it with you guys.</p>
  
  <p><strong>CODE:</strong></p>
  
  <p>This is my HTML file at the moment:</p>
  
  <pre><code>    &lt;!-- The first option --&gt;
  &lt;div class="info-box" ng-class="{'info-box-active': style}" ng-click="style=!style"&gt;
      &lt;div class="box-row"&gt;
          &lt;div class="header"&gt;
              &lt;p class="leftText"&gt;IKANO Bostad&lt;/p&gt;
              &lt;p class="rightText"&gt;Leveransrum&lt;/p&gt;
          &lt;/div&gt;
      &lt;/div&gt;
  
      &lt;div class="box-row"&gt;
          &lt;div class="fields"&gt;
              &lt;p class="leftText"&gt;Folkungagatan 100&lt;/p&gt;
              &lt;p class="rightText"&gt;10 kr/månad&lt;/p&gt;
          &lt;/div&gt;
      &lt;/div&gt;
  &lt;/div&gt;
  
  &lt;!-- The second option --&gt;
  &lt;div class="info-box" ng-class="{'info-box-active': style}" ng-click="style=!style"&gt;
      &lt;div class="box-row"&gt;
          &lt;div class="fields mixed"&gt;
              &lt;p class="leftText"&gt;Lägg till en ny leveransbox&lt;/p&gt;
              &lt;p class="rightText"&gt;0 kr/månad&lt;/p&gt;
          &lt;/div&gt;
      &lt;/div&gt;
  &lt;/div&gt;
  
  &lt;!-- The button that needs to change color --&gt;
  &lt;div class="row row-white"&gt;
      &lt;div class="col col-white"&gt;
          &lt;button style="border-radius:50px; width:200px; height:45px;" class="button" ng-click="startApp()"&gt;Klar&lt;/button&gt;
      &lt;/div&gt;
  &lt;/div&gt;
  </code></pre>
  
  <p>I am not sure if I should include my CSS, because I don't know if it be to any help, but I will include it anyways.</p>
  
  <pre><code>.main-container {
      display: flex;
      flex-direction: column;
      justify-content: flex-start;
      margin: 10px;
  }
  
  .info-box {
      border-radius: 10px;
      border-width: 3px;
      background-color: white;
      margin-bottom: 40px;
      margin-left: 20px;
      margin-right: 20px;
      border: 2px solid grey;
  }
  
  .info-box-active {
      border-radius: 10px;
      border-width: 3px;
      background-color: white;
      margin-bottom: 40px;
      margin-left: 20px;
      margin-right: 20px;
      border: 2px solid #50b3b6;
  }
  
  .box-row {
      display: flex;
      flex-direction: column;
      justify-content: center;
      margin-left: 20px;
      margin-right: 20px;
  }
  
  .box-row &gt; .header {
      color: #50b3b6;
  }
  
  .leftText {
      float: left;
      margin: 10px 10px 10px;
  }
  
  .rightText {
      float: right;
      margin: 10px 10px 10px;
  }
  
  .box-row &gt; .fields {
      color: #8b8c8d;
  }
  
  .box-row &gt; .fields.mixed &gt; .leftText {
      color: #50b3b6;
  }
  
  .box-row &gt; .fields.mixed &gt; .rightText {
      color: #8b8c8d;
  }
  </code></pre>
  
  <p>And no, there is no Javascript (yet).</p>
  
  <p>I am really grateful for all the support I can get.</p>
  
  <p>Thanks!</p>