Pass variables to AngularJS controller, best practice?
===

**I am brand new to [AngularJS][1]** and like what I've seen so far, especially the model / view binding. I'd like to make use of that to construct a simple "add to basket" piece of functionality.

This is my controller so far:

    function BasketController($scope) {
        $scope.products = [];

        $scope.AddToBasket = function (Id, name, price, image) {
            
            ...

        };
    }

And this is my HTML:

    <a ng-click="AddToBasket('237', 'Laptop', '499.95', '237.png')">Add to basket</a>

Now this works but I highly doubt this is the right way to create a new product object in my model. However this is where my total lack of AngularJS experience comes into play.

If this is not the way to do it, what is best practice?

  [1]: http://angularjs.org