Skip to content

Releases: ManuCutillas/ngx-responsive

New method and observable to responsive-window component

11 Feb 18:46
Compare
Choose a tag to compare

Updated to Angular 7.

09 Dec 20:02
Compare
Choose a tag to compare

V7.0.1

  • Update docs

V7.0.0

Bug fixes

  • fix responsive-window #122
  • in responsive directive make min and max optional

Features

  • upgrade to Angular v7
  • responsive-window improvements
    • Add ability to use container reference directly #123
    • add manual refresh action to force refresh when non media event occurs #124

Angular 6 Support

05 May 19:15
Compare
Choose a tag to compare
v6.0.0

ngx-responsive v6.0.0 - Release

New Reactive Services and other features.

01 Apr 20:28
Compare
Choose a tag to compare

Breacking Changes in V5.0.3

  • New method to set the custom config:

    • v4.0.1
     import { NgModule } from '@angular/core'
     import { ResponsiveModule, ResponsiveConfig } from 'ngx-responsive'
     ...
     let config = {
        breakPoints: {
            xs: {max: 600},
            sm: {min: 601, max: 959},
            md: {min: 960, max: 1279},
            lg: {min: 1280, max: 1919},
            xl: {min: 1920}
        },
        debounceTime: 100 // allow to debounce checking timer
      };
    
      export function ResponsiveDefinition(){ 
              return new ResponsiveConfig(config);
      };
     ...
    @NgModule({
        imports: [
          ResponsiveModule
        ],
        declarations: [
          AppComponent
        ],
        providers:[{
         provide: ResponsiveConfig, 
         useFactory: ResponsiveDefinition }]
    })
    export class AppModule { }
    
    • v5.0.3
     import { NgModule } from '@angular/core'
     import { ResponsiveModule } from 'ngx-responsive'
     ...
     const config = {
        breakPoints: {
            xs: {max: 600},
            sm: {min: 601, max: 959},
            md: {min: 960, max: 1279},
            lg: {min: 1280, max: 1919},
            xl: {min: 1920}
        },
        debounceTime: 100
      };
     ...
    @NgModule({
        imports: [
          BrowserModule,
          ResponsiveModule.forRoot(config)
        ],
        declarations: [
          AppComponent
        ],
        providers:[]
    })
    export class AppModule { }
    

New Features in V5.0.3:

  • Reactive services that expose changes through observables:

    • BrowserInfoRx
    • IeInfoRx
    • DeviceInfoRx
    • DeviceStandardInfoRx
    • OrientationInfoRx
    • ResponsiveSizeInfoRx
    • UserAgentInfoRx

    Example:
    We initialize the service and we subscribe to the event changes:

    1. Inject the service in the constructor:
        constructor(
            public browserInfoRx: BrowserInfoRx
        ) {}
    
    
    1. Connet to the reactive service:
        ngOnInit(): void {
            this.browserInfoRx.connect();
        }
    
    
    1. And subscribe to the events service:
      this.browserInfoRx.getBrowser.subscribe((data) => {
        console.log('this.browserInfoRx.getBrowser ===>', data);
      }, (err) => {
        console.log('Error', err);
      });
    
    

    or :

    ngOnInit(): void {
        this.browserInfoRx.connect().subscribe((data) => {
        console.log('this.browserInfoRx.getBrowser ===>', data);
      }, (err) => {
        console.log('Error', err);
      });
    }
    
    
    1. And remove yours subscriptions:
    ngOnDestroy(): void {
        this.browserInfoRx.disconnect();
    }
    

Methods to subscribe to the observables for each of the reactive services:

  • BrowserInfoRx -> getBrowser -> BrowserInfoRx.getBrowser

  • IeInfoRx -> getIE -> IeInfoRx.getIE

  • DeviceInfoRx -> getDevice -> DeviceInfoRx.getDevice

  • DeviceStandardInfoRx -> getStandardDevice -> DeviceStandardInfoRx.getStandardDevice

  • OrientationInfoRx -> getOrientation -> OrientationInfoRx.getOrientation

  • ResponsiveSizeInfoRx -> getResponsiveSize -> ResponsiveSizeInfoRx.getResponsiveSize

  • UserAgentInfoRx -> getUserAgent -> UserAgentInfoRx.getUserAgent

fix ng-package error

04 Mar 23:47
Compare
Choose a tag to compare
3.1.7

Update version

Updated library to Angular 5

15 Nov 19:18
Compare
Choose a tag to compare
3.1.1

Add Michael Burger as contributor

ts files

09 Feb 18:46
Compare
Choose a tag to compare
v0.8.4

ts files

Fixed minor bugs

08 Feb 23:14
Compare
Choose a tag to compare
v0.8.3

Fix bugs ng-module transpiling

Update to Angular 2 - Final Release.

15 Sep 19:38
Compare
Choose a tag to compare
v0.4.6

Update to the Angular2 Final release! :balloon: :balloon: :beers:

NG2-RESPONSIVE to Angular 2 RC.6

02 Sep 17:17
Compare
Choose a tag to compare
v0.4.5

README design