Is it legal for a controller to do something like this in Angular?

```
       $rootScope.someArbitaryObject = ["fee", "fie", "fo", "fum];

```

or

```
      $rootScope.foo = {name: "Jane Q. Public", favoriteColor: "green"}

```