Set view detail inside directive