Search code examples
ember-componentsgrunt-ember-templates

Remove default line break after using an Ember-component in templates ofember-cli project


when i use a ember-component for example

{{blog-post title=title}}
  {{/blog-post}}
<h1> Welcome to my Blog </h1>

I donot want a line break between component and htlml tag.


Solution

  • I set the component class's tagName property to span. So:

    {{blog-post title=title tagName="span"}}
      {{/blog-post}}
    <h1> Welcome to my Blog </h1>