Template parse errors: Can't bind to DIRECTIVE since it isn't a known property of 'div'
问题 I have looked at the questions regarding this error, and have not found a solution. I have a highlight directive, and I take an input index . This directive works when I declare it in the module I'm using it in. But I want to use it in several modules, So I removed the declaration, and put it inside of my root module that imports the errors. That is when I get the error: Error: Template parse errors: Can't bind to 'index' since it isn't a known property of 'div'. (" <div class="read row"