-
Notifications
You must be signed in to change notification settings - Fork 254
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Restrict cheat sheet to controllers #53
Comments
You should be able to turn it off on one controller by including hotkeys service and turning But yeah, it remains on unless you explicitly turn it off. I guess removing the register at app.run might help? (Not sure) (around line 545) |
As an aside, I had to remove the |
@bunkat does it error when manually bootstrapping, or the run block just doesn't run? |
It errors:
I'm using https://github.com/philippd/angular-deferred-bootstrap to bootstrap my app and so modules don't get loaded until after the bootstrap process is complete. |
Ah, well that's a bummer. I'll close this ticket since I merged @ofpiyush's PR, and open a new one for manually bootstrapped usage. Thanks guys! |
Is there a way to restrict the displaying of the cheat sheet to only opted in controllers?
My angular app is defined as:
Because of this, where ever I have an angular controller the cheat sheet can be show.
Here is a controller where I want the cheat sheet to show:
Here I do not want it to show:
I am assuming as I do not have hotkeys defined for this controller it should not appear?
I am new to angularjs so I am just trying to understand the logic.
If I create a new App I am sure that the cheat sheet will not appear...
The text was updated successfully, but these errors were encountered: