Update source of directive