AngularJS template to static html

62 views
Skip to first unread message

Wouter van marrum

unread,
Dec 12, 2014, 3:09:52 PM12/12/14
to ang...@googlegroups.com
Hello everyone,

I was wandering how I could get a static html file from an angularJS template.
Without the AngularJS resources.

Maybe it sounds dumb but I am used to work with php and would love to stay with php.
If somebody can help me or knows how it would be great if you could help me.

Best regards,
Wouter van Marrum.

Kirru

unread,
Dec 12, 2014, 3:19:44 PM12/12/14
to ang...@googlegroups.com
Use directives to load static templates. Read angular directive document, it will be great starting point for you.

Thanks,
K

Raul Vieira

unread,
Dec 12, 2014, 6:30:51 PM12/12/14
to ang...@googlegroups.com
Hi Wouter

Your question was a little unclear to me.

Are you trying to extract an ng template to work with it server side or include a server side template created using php into angular?

Raul

Sent from my iPhone
--
You received this message because you are subscribed to the Google Groups "AngularJS" group.
To unsubscribe from this group and stop receiving emails from it, send an email to angular+u...@googlegroups.com.
To post to this group, send email to ang...@googlegroups.com.
Visit this group at http://groups.google.com/group/angular.
For more options, visit https://groups.google.com/d/optout.

wouter vm

unread,
Dec 12, 2014, 6:38:37 PM12/12/14
to ang...@googlegroups.com

Hello Raul,

Sorry it was so unclear.
I am trying to extract the ng template so I get the static page only.
Without using angularjs.

Hope this is a bit clearer.
Greets Wouter.

Verzonden vanaf mijn Sony Xperia™-smartphone



---- Raul Vieira schreef ----

Hi Wouter

Your question was a little unclear to me.

Are you trying to extract an ng template to work with it server side or include a server side template created using php into angular?

Raul

Sent from my iPhone

On Dec 12, 2014, at 3:09 PM, Wouter van marrum <yuna_d...@hotmail.com> wrote:

--
You received this message because you are subscribed to the Google Groups "AngularJS" group.
To unsubscribe from this group and stop receiving emails from it, send an email to angular+u...@googlegroups.com.
To post to this group, send email to ang...@googlegroups.com.
Visit this group at http://groups.google.com/group/angular.
For more options, visit https://groups.google.com/d/optout.

--
You received this message because you are subscribed to a topic in the Google Groups "AngularJS" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/angular/lbF7GgXkMrg/unsubscribe.
To unsubscribe from this group and all its topics, send an email to angular+u...@googlegroups.com.

Raul Vieira

unread,
Dec 12, 2014, 7:03:53 PM12/12/14
to ang...@googlegroups.com
Ok it's a little clear, but still not crystal:)

If the templates are server side then the client application (non-angular) can make a request for them asynch or not.  Of course no ng processing will have taken place.

If the templates are in the Dom using script tags then you can access them as well.  Other mechanisms will require ng.

Probably not that useful, but maybe you can describe your goals.

Raul



Sent from my iPhone

wouter vm

unread,
Dec 12, 2014, 7:29:26 PM12/12/14
to ang...@googlegroups.com

Well I bought the #app# because it is a nice looking admin template.
Which comes in handy for my own backend system.

So apparently it didn't have the static html pages without the use of angularjs.
So now I need to break it down so it will work without angularjs.

Sorry for the bad description if it still lacks.
End line is I need the html not the functions.

Best regards Wouter.

Raul Vieira

unread,
Dec 12, 2014, 7:35:43 PM12/12/14
to ang...@googlegroups.com
If the templates are remote and you just need a copy and paste then use the Dom inspector to get the templates.  Still seems limited.

I hope that helps.

Raul

Sent from my iPhone
--

Wouter van marrum

unread,
Dec 13, 2014, 5:56:24 AM12/13/14
to ang...@googlegroups.com
Hello Raul, 

No I have all the files that are being used.
But it is a annoying task when you never ever touched angular.

So I hope it will be not an time consuming task.

But could you explain to me what the ng-class does exactly ? 

Wouter.

Op zaterdag 13 december 2014 01:35:43 UTC+1 schreef Raul Vieira:
Reply all
Reply to author
Forward
0 new messages