GithubHelp home page GithubHelp logo

Comments (5)

InnaAtanasova avatar InnaAtanasova commented on September 10, 2024

hi @SomeKay have you tried with these 2 directives:
https://github.com/SAP/fundamental-ngx/blob/main/libs/core/dynamic-page/directives/dynamic-page-header-title.directive.ts

https://github.com/SAP/fundamental-ngx/blob/main/libs/core/dynamic-page/directives/dynamic-page-header-subtitle.directive.ts

Screenshot 2024-05-27 at 10 00 51 AM

from fundamental-ngx.

SomeKay avatar SomeKay commented on September 10, 2024

Hey @InnaAtanasova, yes, the stackblitz is using those exact directives (though for the Platform version of Dynamic Page, but both versions, Core and Platform, exhibit the same behavior).

from fundamental-ngx.

InnaAtanasova avatar InnaAtanasova commented on September 10, 2024

hi @SomeKay could you please provide a code snippet of the expected markup? What markup would work best in your case? Thank you!

from fundamental-ngx.

SomeKay avatar SomeKay commented on September 10, 2024

Hey @InnaAtanasova, as is in the stackblitz would already be enough.

I've tested it also with using a standard Web Component slot element, but also with just a regular Angular Component and none of these work either even though it would be good if they were supported, too.

from fundamental-ngx.

g-cheishvili avatar g-cheishvili commented on September 10, 2024

@SomeKay Hey Kristian, I checked your stackblitz. The problem is that in order for the queries to work, you need to write them inside the dynamic page component directly. What you have now is a projected one and projected one shares DI with the place from which it was created, not with the target component you try to pluck in. Hope I explained well 😆

So what you need to do is to have a code like this

<fdp-dynamic-page-title>
    <span *fdpDynamicPageHeaderTitle>
       <ng-content select="page-title" />
    </span>
</fdp-dynamic-page-title>

and it should work like a charm

from fundamental-ngx.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.