From 4ede2fbb69f3caf1f4094b8464baa5d4e4aad16b Mon Sep 17 00:00:00 2001 From: Chris Thielen Date: Tue, 6 Sep 2016 18:55:18 -0500 Subject: [PATCH] docs(ng2.UIRouterModule): Fix examples with @Decorators --- src/ng2/uiRouterNgModule.ts | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/src/ng2/uiRouterNgModule.ts b/src/ng2/uiRouterNgModule.ts index 6c6840b98..3a3b0abbc 100644 --- a/src/ng2/uiRouterNgModule.ts +++ b/src/ng2/uiRouterNgModule.ts @@ -53,7 +53,7 @@ export const UIROUTER_STATES_TOKEN = new OpaqueToken("UIRouter States"); * var homeState = { name: 'home', url: '/home', component: Home }; * var aboutState = { name: 'about', url: '/about', component: About }; * - * @UIRouterModule({ + * @ UIRouterModule({ * imports: [ BrowserModule ], * declarations: [ NonRoutedComponent ], * states: [ homeState, aboutState ] @@ -65,11 +65,11 @@ export const UIROUTER_STATES_TOKEN = new OpaqueToken("UIRouter States"); * Note: the `UIRouterModule` decorator creates a standard Angular 2 `NgModule`. * The equivalent `AppModule` could also be crafted by hand using only the `NgModule` decorator: * - * ``` + * ```js * var homeState = { name: 'home', url: '/home', component: Home }; * var aboutState = { name: 'about', url: '/about', component: About }; * - * @NgModule({ + * @ NgModule({ * imports: [BrowserModule, UIRouterLibraryModule], * declarations: [NonRoutedComponent, Home, About], * entryComponents: [Home, About], @@ -77,10 +77,9 @@ export const UIROUTER_STATES_TOKEN = new OpaqueToken("UIRouter States"); * { provide: UIROUTER_STATES_TOKEN, useValue: [homeState, aboutState], multi: true } * ] * }) export class AppModule {}; - * * ``` * - * @param moduleMetaData the [[UIRouterModuleMetadata]] + * @param moduleMetaData * (See also [NgModuleMetadataType](https://angular.io/docs/ts/latest/api/core/index/NgModuleMetadataType-interface.html) */ export function UIRouterModule(moduleMetaData: UIRouterModuleMetadata) {