Saturday, 15 September 2012

javascript - url in css get rewritten with angular -


url (#url) is a problem with the base set and html5mode with svgs in itemprop = "text">

filter as : url (/ base / # url) .

I have tried to disable the html5 mode and remove the base, but whenever the angular bootstrap writes this URL again

when SVG exists , Then the angular is loading, it will show the right clip / filter, however whatever may happen that once the angular iClassia starts. Does anyone know an alternate solution? I have tried to use full file path before trying to target it as well as disable the base.

By setting the base I mean & lt; Base href = '/' & gt; which should work

Inspection ahead of this problem shows that when angular is started, then it is a SVG

before angular

  & lt; Svg & gt; & Lt; Defs & gt; & Lt; Filter & gt; & Lt; / Filter & gt; & Lt; / Defs & gt; & Lt; Ch & gt; & Lt; Path & gt; & Lt; / G> & Lt; / Svg & gt;  

After bootstrap

  & lt; Svg & gt; & Lt; Defs & gt; & Lt; Svg class = 'filter' & gt; & Lt; Path & gt; & Lt; / Svg & gt; & Lt; / Defs & gt; & Lt; Ch & gt; & Lt; Path & gt; & Lt; / G> & Lt; / Svg & gt;  

I think you set the wrong base attribute in the head of the index file .

Be sure to check all relative links, images, scripts etc. Angle is required to specify the URL base at the top of your main HTML file, unless the html5Mode.requireBase is set to false. With the passage in the $ locationProvider.html5Mode () in the Html5Mode definition object, the relative url will always be resolved for this base URL, even if the initial URL of the document is different.


No comments:

Post a Comment