Re: [angular.js] ng:include Is not working

23,998 views
Skip to first unread message

Peter Bacon Darwin

unread,
Jul 21, 2012, 2:42:45 AM7/21/12
to ang...@googlegroups.com
Can you be more specific?  What is not being out put? Anything?  Or just the content of account.html?
Can you check in the browser console to see if the  /compo/settings/account.html  is being loaded correctly?
Pete


On 21 July 2012 07:31, Dewmal Handapangoda <dewmal...@gmail.com> wrote:

I am going to use  ng:include but it is not gave me any output.

<html xmlns:ng="http://angularjs.org" ng-app> and 

<script src="/js/angular-1.0.1.js" type="text/javascript" charset="utf-8" ></script> 
this  already in my html file 


<div class="page-header">
<h1 class="hBig">Join with us <small> &amp; Be a Smater in your class</small></h1>
</div>

<div class="row-fluid">
<div ng:include="/compo/settings/account.html"></div>
</div>


thankx.
dewmal


--
You received this message because you are subscribed to the Google Groups "AngularJS" group.
To view this discussion on the web visit https://groups.google.com/d/msg/angular/-/Z-y1G4q1TjkJ.
To post to this group, send email to ang...@googlegroups.com.
To unsubscribe from this group, send email to angular+u...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/angular?hl=en.

Paul Hammant

unread,
Jul 21, 2012, 4:04:14 PM7/21/12
to ang...@googlegroups.com
Try one of 

 ../compo/settings/account.html 
 ../settings/account.html 
 ../account.html 

- Paul

Martin Kuhn

unread,
Jul 31, 2012, 2:55:34 AM7/31/12
to ang...@googlegroups.com
Had the same problem. 
The solution to ""urlToInclude'" works for me also ...

Am Sonntag, 22. Juli 2012 00:03:56 UTC+2 schrieb Javier Abanses:
Hi, 

I was having the same issue today. Try this,

change

<div ng:include="/compo/settings/account.html"></div>

to

<div ng:include="'/compo/settings/account.html'"></div> 

It worked me.

J/

alexse...@gmail.com

unread,
Dec 4, 2012, 2:41:44 PM12/4/12
to ang...@googlegroups.com
Hello there, i was searching xlmns:ng vs ng-app and came here to your post.


I'm wondering why do you use <html xmlns:ng="http://angularjs.org" ng-app> and where did you get it.
in the current documentation of angular it says you only need to add ng-app attribute to html tag, such as :
<html ng-app>  and you're done.

however, a former tutorial (version 0.9 of angular) says you need to do this 
<html xmlns:ng="http://angularjs.org">
but as you can see, you don't need to specify the ng-app attribute.

so let's try to remove the ng-app attribute from your code since they might be conflict each other.

regards.
Reply all
Reply to author
Forward
0 new messages