title: How to use ternary in ng-init in AngularJS?
body: <p>Is it possible to use ternary operator in <code>ng-init</code> in AngularJS ?</p>
  
  <p>Something like : <code>&lt;select ng-model="project" name="act" ng-options="act.user_id as act.user_display_name for act in actors" ng-init="isLoggedIn == true ? "" : act.user_id = credentials.user_id" &gt;&lt;/select&gt;</code></p>