Skip to content

Instantly share code, notes, and snippets.

@cdroulers
Created April 19, 2015 01:50
Show Gist options
  • Save cdroulers/813fcaf03df177db5420 to your computer and use it in GitHub Desktop.
Save cdroulers/813fcaf03df177db5420 to your computer and use it in GitHub Desktop.
<div>
<input type="text" ng-model="ctrl.SomeProperty"><br>
<input type="text" ng-model="ctrl.SomeModel.SomeField" ng-show="ctrl.ShouldShow()"><br>
</div>
// Usage of the directive:
<my-directive model="Whatever"></my-directive>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment