<!DOCTYPE html> <div ng-app="myApp" ng-controller="myCtrl"> <h1>{{carname}}</h1> </div> <script> <p>The property "carname" was made in the controller, and can be referred to in the view by using the {{ }} brackets.</p> </body> |
{{carname}}The property "carname" was made in the controller, and can be referred to in the view by using the {{ }} brackets. |