I'm a newbie in the world of Angular and I would like to know if it's a good practice to use the $parent
global variable to access a parent scope. For instance, a data-ng-if
creates an isolated scope which causes sometimes some problems for accessing the parent scope, so the only way to do that is $parent.myVariable
.
Any example, any advice to make sure that my code is clean and follows the good practices would be appreciable.