adds support for ng-if

This should close issue #16