title: How to use C# string array with Angular ng-init?
body: <p>I've C# array of string variable, where I just want to populate that in a dropdown box using AngularJS. Can someone help me assigning that to ng-init variable, so that I can ng-repeat the values?</p>
  
  <pre><code>@{string[] strArray = new string[length]}
  
  &lt;div ng-init="FieldOptions=@strArray"&gt;
     &lt;select class="custom-select-style" ng-options="c as c for c in FieldOptions"&gt;   
       &lt;option value=""&gt;--@MyResource.Profile.PlsSelect--&lt;/option&gt;
     &lt;/select&gt;
  &lt;/div&gt;
  </code></pre>
  
  <p>When I tried like above code snippet, it throws an error "Syntax Error: Token ']' not a primary expression at column 30 of the expression [FieldOptions=[System.String[]]] starting at []]]"</p>
  
  <p>Thanks in advance.</p>