added the plugin decorate stub, to inject an initial state into the directive