[chore] Updating directive with optional ng-model

@donnapep @stulees please review. Thanks.