title: Declaring a scope property
body: <p>I'm just learning angulerjs. </p>
  
  <p>I’ve seen examples that have code similar to the following in an AngularJS controller: </p>
  
  <pre><code>$scope.menuState.show = false; 
  </code></pre>
  
  <p>However, that doesn’t work. The following does: </p>
  
  <p>$scope.menuState  = [show: false]; </p>
  
  <p>Show the previous line work? Just wondering since I've seen it in an Angularjs reference book. </p>