Added restrictions
Isolated JavaScript code of Angular component from HTML