Skip to content

ngdpCodeSnippet not working for css or scss language settingsΒ #17

@Bill77

Description

@Bill77

It seems the ngdpCodeSnippet directive is not working for non-Angular/typescript settings, I just tried for css, and it doesn't seem to be working.

Here is what I have in my template:

<textarea ngdpCodeSnippet lang="scss">
    .header-style {
      display: flex;
      align-items: center;
      ecl-icon {
        height: 0.875rem;
        width: 0.875rem;
        margin-right: 0.5rem;
      }
    }
</textarea>

<!-- Trying the other way -->
<ngdp-code-snippet lang="scss">
  <textarea>
      .header-style {
        display: flex;
        align-items: center;
        ecl-icon {
          height: 0.875rem;
          width: 0.875rem;
          margin-right: 0.5rem;
        }
      }
  </textarea>
</ngdp-code-snippet>

Here is what I see.

image

Also here is what I see via DevTools - looks like the lang to languages isn't being propagated?
image

Apologies, if this was user error? πŸ˜„

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions