Html Template Parse Error

881 views
Skip to first unread message

Hammad Ali

unread,
Apr 5, 2017, 9:19:49 AM4/5/17
to Angular and AngularJS discussion
when i use this html in my app.component.html file i got an error -> Uncaught Error: Template parse errors:
Unexpected closing tag "section". It may happen when the tag has already been closed by another tag.
 by removing <header> and <section> tag it starts working.
I am unable to identify the issue why this is happening .
  
 <header class=" bd-headerarea-1 bd-margins">
        <div data-affix="" data-offset="" data-fix-at-screen="top" data-clip-at-control="bottom" 
      data-enable-lg="" data-enable-md="" data-enable-sm="" class="bd-affix-1 bd-no-margins bd-margins affix-top">
        <section class=" bd-section-3 bd-tagstyles  " id="section3" 
        data-section-title="Top White with Three Containers">
            <div class="bd-container-inner bd-margins clearfix">
                <div class=" bd-layoutbox-3 bd-no-margins clearfix">
                    <div class="bd-container-inner" style="margin-left:40%">
                        <div class=" bd-layoutbox-7 bd-no-margins bd-no-margins clearfix">
                            <div class="bd-container-inner" >

                                <a class=" bd-logo-4 bd-no-margins" href="">
                                    <img class=" bd-imagestyles-18" src="http:"" alt="">
                                </a>
                            </div>
                        </div>


                    </div>
                </div>
            </section>
        </div>
   </header>

Sander Elias

unread,
Apr 6, 2017, 8:13:14 AM4/6/17
to Angular and AngularJS discussion
Hi Hammad,

I had the same issue a few day's ago, but I can't remember how I resolved it. If you put it up in a plunker (make it working first, and then add the  <header> and <section> tags so it breaks. I will take a look at it. I know in my case it was a stupid mistake I made, but I don't remember what it was ;)

Regards
Sander

Krishna Chaitanya

unread,
Apr 6, 2017, 9:10:52 AM4/6/17
to Angular and AngularJS discussion
You are missing a closing </div> tag before </section>

Neeraj Dembla

unread,
Jun 7, 2017, 6:13:12 AM6/7/17
to Angular and AngularJS discussion, chaita...@gmail.com
I had a similar problem i was missing few closing tags before </section> . Thanks Krishna for pointing it out.
Reply all
Reply to author
Forward
0 new messages