$controllerProvider

Improve this Doc View Source $controllerProvider

  1. $controller
  2. provider in module ng

The $controller service is used by Angular to create new controllers.

This provider allows controller registration via the register method.

Methods

  • register(name, constructor);

    Parameters

    Param Type Details
    name stringObject

    Controller name, or an object map of controllers where the keys are the names and the values are the constructors.

    constructor function()Array

    Controller constructor fn (optionally decorated with DI annotations in the array notation).

© 2010–2016 Google, Inc.
Licensed under the Creative Commons Attribution License 4.0.
https://code.angularjs.org/1.2.32/docs/api/ng/provider/$controllerProvider

在线笔记
App下载
App下载

扫描二维码

下载编程狮App

公众号
微信公众号

编程狮公众号

意见反馈
返回顶部