The difference is who controls the flow. A library is a collection of functions that your code calls, so you decide when to use it. A framework provides the structure and calls your code, a principle called inversion of control.
Angular is a framework.
Provides the application structure and architecture, and controls the flow through the component lifecycle.
Its dependency injection manages object creation, so your code does not create its own dependencies.
Ships built-in features such as routing, forms and an HTTP client.
Expects your code to follow its conventions and patterns.
Rewriting in plainer words…
This answer doesn't lend itself to a diagram - it reads best . No credits were charged.