Skip to content

Documentation bug in Controller tutorial #146

Description

@cotsog

Hi,

I think there is an error in the controller tutorial more precisely in:

JavaScriptMVC > Tutorials > Get Started with jQueryMX > Controller > Overview

URL is http://javascriptmvc.com/docs.html#!mvc.controller.

The error is in this phrase:

"The helper method name is the controller's name underscored, with any periods replaced with underscores. For example, the helper for $.Controller('App.FooBar') is $(el).appfoobar()."

it should be:

"The helper method name is the controller's name underscored, with any periods replaced with underscores. For example, the helper for $.Controller('App.FooBar') is $(el).app_foobar()."

Also it would be nice to mention that if "controller" is used in the controller's name, it will be removed from the helper method name e.g. the helper for $.Controller('App.Controller.FooBar') is $(el).app_foobar().

Thanks!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions