Interfacing with Angular

This is an advanced topic.
See: Foreign Language Interface


You should upgrade to the latest version. Upgrading is not hard.
See:
Install SWI-Prolog development version on Ubuntu using PPA
Install SWI-Prolog development version on Windows
If you need Mac, then I can not help.