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.

Implement Missing Features for View

See original GitHub issue

NOTE: Please add use cases for anything not yet covered here that should be considered.

Features currently missing from @View:

  • More than one @View for a component
  • Move CSS from <style>@import()</style> into @View annotation.
    • Needed for inlining during build step
    • Often times same HTML may have different CSS for styling
  • Selectors:
    • CSS (as in <button> vs <button ios-style>)
    • platform as in iOS, android, desktop
    • screen size

Issue Analytics

  • State:closed
  • Created 8 years ago
  • Comments:28 (14 by maintainers)

github_iconTop GitHub Comments

5reactions
sallampallicommented, Feb 12, 2016

I am surprised to see this as a missing feature. This was so easy to do in Angular 1.x.x. in directives, There will be lot many use cases which drive conditional templates/multiple Views. I might need the same component, its data, config etc. but a slightly different view . Something like this would have been great

/*Just making this up as an example */
@Component({
selector: 'sample-selector',
properties: ['mode'], 
template:function(){
if(this.mode==='simple'){return '<h1 ngFor="....">{{.....}}</h1>';}
else{return '<button ngFor="...">{{...}}<button>'}
}
});

Is there another way to deal to achieve this ?

4reactions
nicksloancommented, Feb 27, 2017

@mhevery It’s pretty unhelpful to close an issue as “obsolete, and longer relevant / actionable” with no explanation at all. Can you provide some context?

Read more comments on GitHub >

github_iconTop Results From Across the Web

android studio error : missing feature: WATCH - Stack Overflow
This message No, missing feature: WATCH means that you're trying to install Wearable app on mobile phone - you shouldn't do that, ...
Read more >
Some Solutions to the Missing Feature Problem in Vision
The optimal solution involves inte(cid:173) grating over the missing dimensions weighted by the local probability densities. We show how to obtain closed-form ...
Read more >
Solved: Missing Feature: WATCH in Android Studio SDK
this happend, when i delete an main_activityopen the application.manifest and remove uses- feature android:name="android.hardware.type. watch "
Read more >
Is there a "missing" feature or extension that you would like to ...
Is there a "missing" feature or extension that you would like to see in VS Code? #watercooler #vscode #webdev ...
Read more >
Implementing feature detection - Learn web development | MDN
This article details how to write your own simple feature detection, how to use a library to speed up implementation, and native features...
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