embed spinner template into directive