Any guidance pylons and Angular2 combination

37 views
Skip to first unread message

Narendra Palavelli

unread,
Oct 27, 2017, 6:11:37 AM10/27/17
to pylons-discuss
Hello Group 

   Is there any link or guide about Pylons and angularjs2 combination and configuration settings  

   I've application and tech stack is pylons and jinj2. we would like to introduce Angular2 in between, so Is there any guidance or link needed. 

   Tried following thing, We made dist out of angular2 app and putt inside templates folder of pylons project and It tired to load then we got the following error in browser console. 

core.es5.js:350 Uncaught reflect-metadata shim is required when using class decorators
ajs1.PNG
ajs2.PNG

Christoph Zwerschke

unread,
Oct 27, 2017, 7:06:01 AM10/27/17
to pylons-...@googlegroups.com
Am 27.10.2017 um 11:18 schrieb Narendra Palavelli:
> Is there any link or guide about Pylons and angularjs2
combination and configuration settings
> I've application and tech stack is pylons and jinj2. we would
like to introduce Angular2 in between, so Is there any guidance or link
needed.

Angular 2+ is a framework for building single page applications. You
won't need Jinja templates on the server in that case. Pylons (Pyramid)
would be used only as a server to fetch data e.g. via REST or GraphQL.

Essentially, you will create two separate projects, one for the backend
made with Pylons and one for the frontend made with Angular.

I'm using the combination Angular + Pyramid quite successfully in that
way. For GraphQL, I'm using graphene-sqlalchemy and webob-graphql to
integrate with Pyramid. If you google for REST and Pyramid, you'll also
find solutions for creating REST APIs with Pyramid.

-- Christoph

Narendra Palavelli

unread,
Oct 30, 2017, 1:47:25 PM10/30/17
to pylons-discuss
Hi Christoph, 

  thanks for suggesting that. I have different scenario, my application is initially developed using Jinj2 and pylons, now its tightly coupled, it does not much UI/UX, but we would like to add good UI/UX to app 
So, Is it good to have when we want good UI/UX.? Im in confusion to take decision. 
Reply all
Reply to author
Forward
0 new messages