make repeat element inherit from rootScope