Skip to content
This repository was archived by the owner on Jan 6, 2025. It is now read-only.
This repository was archived by the owner on Jan 6, 2025. It is now read-only.

API Documentation for ngStyle and ngClass uses different syntax #215

@molcik

Description

@molcik

Bug

In API documentation is written to use ngClass and ngStyle but it doesn't work. To use responsive features you have to use class and style

Example

To change font-size you have to use:
[style.sm]="{'font-size.px': 40}"
instead of:
[ngStyle.sm]="{'font-size.px': 40}"

https://plnkr.co/edit/b7XxsdgBAISf0KzRDwte?p=preview

Version

@angular/flex-layout: ^2.0.0-rc.1

Metadata

Metadata

Assignees

No one assigned

    Labels

    bughas prA PR has been created to address this issue

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions