I'm on a team that is programming a new application and is also developing a pattern library for that application. When we began coding this application, we used Angular 5. However, we have seen it would be much easier to implement the pattern library with Angular 6. If we bundled the Angular 6 library, will it be usable for Angular 5?
Note: The main reason we're using Angular 6 is because it makes producing a pattern library much easier (i.e the new angular CLI). We aren't using any other Angular 6 features.
After some initial testing, I've found that you can. My test was very basic (i.e. one exported component from the library, that only was comprised of divs) but the difference in Angular versions didn't seem to cause errors.
EDIT: ^^ Is incorrect. When I first answered my own question I used a test that ended up being incorrect. I don't think there is a good way to integrate an Angular 6 library into an Angular 5 projects, because the difference in all of the @angular
dependencies are too great to allow for effective integration. I had to downgrade my library to Angular 5.