import { Component } from '@angular/core' ; import { StateService } from '../../services/state' ; @ Component ( { selector : 'explore-code' , styles : [ require ( './explore-code.style.scss' ) ] , template : require ( './explore-code.template.html' ) } ) export class ExploreCodeComponent { constructor ( public stateService ) { this . stateService . set ( 'section' , 'explore-code' ) ; } }