Angular: Empty Fiddle
http://angularjs.org/
by Devlin Pajaron
HTML
<script src="https://cdnjs.cloudflare.com/ajax/libs/angular.js/1.5.1/angular.js"></script>
<link rel="stylesheet" href="http://netdna.bootstrapcdn.com/font-awesome/4.0.3/css/font-awesome.css">
<link rel="stylesheet" href="http://netdna.bootstrapcdn.com/font-awesome/4.0.3/css/font-awesome.css">
<div ng-controller="MyCtrl">
{{text}}
</div>
CSS
.bordered {
border: 1px solid black;
}
.inline {
max-width: 137px !important;
text-overflow: ellipsis;
display: inline-block;
overflow: hidden;
white-space: nowrap;
vertical-align: top;
}
.inline-no-va {
max-width: 137px !important;
text-overflow: ellipsis;
display: inline-block;
overflow: hidden;
white-space: nowrap;
}
.noinline {
max-width: 137px !important;
text-overflow: ellipsis;
overflow: hidden;
white-space: nowrap;
}
a {
text-decoration: none;
}
JavaScript
var myApp = angular.module('myApp',[]);
//myApp.directive('myDirective', function() {});
//myApp.factory('myService', function() {});
myApp.controller('MyCtrl', function ($scope) {
$scope.text = 'text';
});