Angular: CSS styling
http://angularjs.org/
HTML
<div ng-controller="MyCtrl" >
<div ng-repeat="item in itemsToShow" >
<!--THIS IS THE EXPRESSION THAT I WANT DYNAMIC-->
{{item.name}}, {{item.title}}
</div>
</div>
JavaScript
var myApp = angular.module('myApp', []);
function MyCtrl($scope) {
var items = [
{
name: 'Misko',
title: 'Angular creator'},
{
name: 'Igor',
title: 'Meetup master'},
{
name: 'Vojta',
title: 'All-around superhero'}
];
var items2 = [
{
firstname: 'Misko',
titleBig: 'Angular creator'},
{
firstname: 'Igor',
titleBig: 'Meetup master'},
{
firstname: 'Vojta',
titleBig: 'All-around superhero'}
];
$scope.itemsToShow = items;
}