<!DOCTYPE html>
<html ng-app="angularjs-starter">
  <head lang="en">
    <meta charset="utf-8">
    <title>$scope example Plunker</title>
    <script src="//ajax.googleapis.com/ajax/libs/angularjs/1.0.3/angular.min.js"></script>
    <link rel="stylesheet" href="style.css">
    <script src="app.js"></script>
  <body ng-controller="MainCtrl">
    <h1>Welcome to $scope example</h1>
      There is a solid blue line around each .ng-scope element.
    <div ng-repeat="roles in user.roles">
      Type here to change user.name value: <input type="text" ng-model="user.name" />
      Type here to change just the first role's name value: <input type="text" ng-model="user.roles[0].name" />
      Hope this helps...

var app = angular.module('angularjs-starter', []);

app.controller('MainCtrl', function($scope) {
  $scope.name = 'World';
  var user = {
    name: 'Josh',
    roles: [
      {name: 'Updater'}, 
      {name: 'Developer'}, 
      {name: 'User'}
  $scope.user = user;
/* CSS goes here */

.ng-scope {
 border: 1px solid blue;
 margin: 4px;