Note that there are some explanatory texts on larger screens.

plurals
  1. POSocial sharing with ember.js
    text
    copied!<p>I have single page app made with ember.js and I have some problems with implementing social sharing.</p> <p>I need to implement into hbs template something like this:</p> <pre><code>&lt;a href="http://someaddres.com?u={{model.url}}&amp;title={{model.title}}"&gt;Link&lt;/a&gt; </code></pre> <p>However when this is rendered into browser there are additional script tags concatenated within the <code>href</code> string, eventually the link works and I am redirected but instead title I get something like this:</p> <pre><code>&lt;script id='metamorph-190-start' type='text/x-placeholder'&gt;&lt;/script&gt; MyTitle &lt;script id='metamorph-19... </code></pre> <p>Where I need just MyTitle.</p> <p>More specifically I use the following hbs template for facebook sharing, the model is initialized into the router:</p> <pre><code>&lt;a href="https://www.facebook.com/login.php?next=http%3A%2F%2Fwww.facebook.com%2Fsharer%2Fsharer.php%3Fs%3D100%26p%255Btitle%255D%3D{{model.title}}%26p%255Burl%255D%3D{{model.url}}%26p%255Bsummary%255D%3D{{model.summary}}%26p%255Bimages%255D%255B0%255D%3D%2540Model.EventImage%2527%253EShare&amp;display=popup" target="_blank"&gt; &lt;img src="http://www.simplesharebuttons.com/images/somacro/facebook_img.png" alt="Facebook" /&gt; &lt;/a&gt; </code></pre> <p>I also tried third party libraries, like janrain, ShareThis or AddThis, but with them I had initialization problems, buttons were not shown at all when placed into template, and also had problems with messages customization from the model.</p> <p>Thanks, Igor </p>
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload