There was a difficulty in creating an informative headline. Here's what I got:
productController.prototype.createHeader = function (data) {
var viewModel = this;
if (data != null) {
viewModel.header = "Product: " + data.product + " " + "Type: " + data.type + " " + "Count: " + data.count;
}
}
<div ng-controller="productController">
<input type="text" ng-model="productId" />
<input type="submit" ng-click="product.search(productId)" />
<strong> {{product.header}} </strong>
</div>
That I received:
Product: Samsung Type: Phone Count: 5
That I wanted to get:
Product: Samsung Type: Phone Count: 5
The header should be loaded dynamically, the "product", "type" and "quantity" fields should not hang static on the form. Example:
Ptoduct: <strong>{{product.header.product}}</strong>
I ask to help with stylization, or to prompt in what direction to dig. I know that in jQuery there are methods "bold" and "big"