<!DOCTYPE html>
<html ng-app="angularjs-starter">
<head lang="en">
<meta charset="utf-8">
<title>$scope example Plunker</title>
<script src="//"></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 value: <input type="text" ng-model="" />
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) {
$ = '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;