ngrx / store-devtools

Developer Tools for @ngrx/store
MIT License
325 stars 38 forks source link

Add Dock Monitor and improve devtools setup #3

Closed MikeRyanDev closed 8 years ago

MikeRyanDev commented 8 years ago

This PR looks big, but doesn't have any breaking changes.

As discussed, in the future I think the Commander and Dock components could be moved into their own repos. However, I wanted to expedite releasing them in preparation for the ngrx talk tomorrow.

This PR also improves the setup process for using the devtools. Example of the minimum config required to get them working:

import {Devtools, instrumentStore} from '@ngrx/devtools';

@Component({
    selector: 'app',
    providers: [
        provideStore(reducer),
        instrumentStore()
    ],
    directives: [ Devtools ],
    template: `
        <ngrx-devtools></ngrx-devtools>
    `
})
export class App{ ... }
robwormald commented 8 years ago

lgtm