do not use global var ngx

import it as a module