Accès the modal params in your controller using $ocModalParams