set directive

use directive for share component such as menu header footer