Skip to content

Question on 'Controller within Repeat' #4

@sgentile

Description

@sgentile

I'm attempting something similiar here: http://www.bennadel.com/blog/2450-Using-ngController-With-ngRepeat-In-AngularJS.htm a master/detail approach.

Where I am going to bind a controller to a repeat, ie:

    My person controller:

    'use strict';

    define([], function() {

    function PersonController($scope) {
    }
    
    return PersonController;
    

    });

    However, I'm getting this error: Error: Argument 'PersonController' is not a function, got undefined

    I'm curious how to pull this controller and it's template in a repeater - (similiar perhaps to how Backbone would work)

    Metadata

    Metadata

    Assignees

    No one assigned

      Labels

      No labels
      No labels

      Projects

      No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions