diff --git a/angularjs.md b/angularjs.md index d06e1fe03..f0e850f2d 100644 --- a/angularjs.md +++ b/angularjs.md @@ -11,6 +11,7 @@ layout: default
  • {{phone.name}}
  • + ### Model (ng-model) @@ -54,7 +55,7 @@ layout: default In controller you call with parameter and will use promises to return data from server. - App.controller('controllerName', + App.controller('controllerName', function(NameService){ NameService.get() .then(function(){}) @@ -64,7 +65,7 @@ In controller you call with parameter and will use promises to return data from App.directive('name', function(){ return { - template: '

    Hello

    ' + template: '

    Hello

    ' } });