question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Remove the first element or replace by the first child element (Replace prop in @View)

See original GitHub issue

The code rendered of my component is the following:

<ngdialog class="ng-binding">
   <div class="ng-binding">
    dialog
   </div>
</ngdialog>

By I want this:

   <div class="ng-binding">
    dialog
   </div>

Now is it possible? We need some property for example replace in @ View?

@Component({
  selector: 'ngdialog'
})
@View({
  template: 
  `<div>
    {{title}}
  </div>`,
  replace: true
})

Issue Analytics

  • State:closed
  • Created 8 years ago
  • Comments:10 (3 by maintainers)

github_iconTop GitHub Comments

1reaction
lsilva-kununucommented, Jun 23, 2017

Sitll without any resolution? I dont like attribute selectors 😢

0reactions
angular-automatic-lock-bot[bot]commented, Sep 11, 2019

This issue has been automatically locked due to inactivity. Please file a new issue if you are encountering a similar or related problem.

Read more about our automatic conversation locking policy.

This action has been performed automatically by a bot.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Remove first child in javascript - element - Stack Overflow
Try this one-liner: document.getElementById('queue').removeChild(document.getElementById('queue').getElementsByTagName('li')[0]);.
Read more >
HTML DOM Element firstElementChild Property - W3Schools
The firstElementChild property returns the first child element of the specified element. The firstElementChild property is read-only. The firstElementChild ...
Read more >
React Children And Iteration Methods - Smashing Magazine
But in some cases, we want to inspect the children prop to maybe wrap each child in another element/component or to reorder or...
Read more >
Using the React.cloneElement() function to clone elements
In this in-depth tutorial, learn how to clone and manipulate elements three different ways using the React.cloneElement function.
Read more >
The mystery of React Element, children, parents and re-renders
First of all, what exactly are “children”, when they are passed like this? const Parent = ({ children }) ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found