Simple example of using the ng-if directive to conditionally add elements to the view DOM based on attribute type