The ui-switch options not functional

The options are not being parsed because the $parse object is undefined. We should inject it in the directive.