Skip to content

Instantly share code, notes, and snippets.

@phvaillant
Created September 26, 2019 10:32
Show Gist options
  • Save phvaillant/9cd03150f8691e798a4d2bf9960d0470 to your computer and use it in GitHub Desktop.
Save phvaillant/9cd03150f8691e798a4d2bf9960d0470 to your computer and use it in GitHub Desktop.
<div class="row" ng-init="show=false">
<div class="col-sm-4">
<div ng-click="show=!show">
Display/Hide something on click
</div>
</div>
<div class="col-sm-8" ng-if="show==true">
<p>
{{1990-16-01}}: this is a non-formatted date.
</p>
<p>
{{1990-16-01 | date}}: this is a formatted date with the date filter.
</p>
</div>
</div>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment