Question: I am working in an angular 4 project ,In this I have a mega menu .What I want to do is when I clicked on a menu inside the mega menu I want to close it .

In my case it always open even after I clicked on a specific menu ,but closed if I remove the mouse focus in it .

Stackblitz : <https://stackblitz.com/edit/angular-bootstrap-carousel-dynamic2-w1qhj4?file=app/app.component.html>

can anyone help me to fix it .

Answer: 
I know that´s been more than 3 years, but... looking for the same kind of solution I think that including compiled python code -not your source code- inside the container would be a challenging trial for someone trying to access your valuable source code.

If you run `pyinstaller --onefile yourscript.py` you will get a compiled single file that can be run as an executable. I have only tested it in Raspberry, but as far as I know it´s the same for, say, Windows.

Of course anything can be reverse engineered, but hopefully it won´t be worth the effort to the regular end user.
I think it could be a solution as using a "container" to protect our code from the person we wouldn't let them access. the problem is docker is not a secure container. As the root of the host machine has the most powerful control of the Docker container, we don't have any method to protect the root from accessing inside of the container.

I just have some ideas about a secure container:

1. Build a container with init file like docker file, a password must be set when the container is created;
2. once the container is built, we have to use a password to access inside, including 
reading\copy\modify files
3. all the files stored on the host machine should be encypt。
4. no "retrieve password" or “--skip-grant-” mode is offered. that means nobody can
access the data inside the container if u lost the password.

If we have a trustable container where we can run tomcat or `Django` server, code obfuscation will not be necessary.