Fixed the $watch in the case is inside another directive.