<div class="block_search_app">
<span class="app_name">Заявки на </span>
<select ng-model="type" class="select_app">
<option value="">Все</option>
<option value="{{type.id}}" ng-repeat="type in types">{{type.name}}</option>
</select>
</div>
<table class="table_applications" id="TableApplications">
<thead>
<th class="app name">Название заявки</th>
<th class="app status">Статус заявки</th>
<th class="app task">Задание</th>
</thead>
<tbody>
<tr class="bid" ng-repeat="doc in applications | filter:type">
<td class="name">{{doc.name}}</td>
<td class="status">
<span class="status work"></span>
В работе
</td>
<td class="task">
<a href="{{doc.task.link}}" class="task_link"><b>{{doc.task.name}}</b></a>
</td>
</tr>
app.directive('ibaModel', function () {
return {
restrict: 'A',
priority: 1010,
scope: {
config:{
templateId:'='
}
},
link: function (scope, element, attrs) {
// debugger;
var el = $(element);
el.attr('id', scope.config.templateId);
el.iba_model('init', {id: scope.config.templateId});
}
};
});
var origObj = {
a: {
a_val1: {
a_val1_a: "some text"
},
a_val2: "text"
},
b: {
b_val1: {
b_val1_a: "one more",
b_val2_a: "one more2"
},
b_val2: "this is string"
}
}
var text = "one more2";
function search(obj, path) {
obj._path = path;
for (var key in obj) {
if (!obj.hasOwnProperty(key) || key === '_path') {
continue;
}
obj[key]._path = (obj._path + "." + key);
if (typeof obj[key] === "object") {
search(obj[key], obj[key]._path);
}
else if (obj[key] === text) {
console.log(text, " найден в объекте: " + obj._path + " , свойсво: " + key);
}
}
}
search(origObj, "origObj");
class Program
{
static void Main(string[] args)
{
var stringList = new List<string> {"asdasd","","adadasd","фывфывфыв","dвыацwe"};
Console.WriteLine(CheckList(stringList) ? bool.TrueString : bool.FalseString);
}
private static bool CheckList(IEnumerable<string> stringList)
{
return stringList.All(str => Regex.IsMatch(str, @"\A\p{L}*\Z"));
}
}
static void Main(string[] args)
{
var req = WebRequest.Create("http://checkip.dyndns.org");
string reqstring;
using (var reader = new StreamReader(req.GetResponse().GetResponseStream()))
{
reqstring = reader.ReadToEnd();
}
string[] a = reqstring.Split(':');
string a2 = a[1].Substring(1);
string[] a3 = a2.Split('<');
string ip = a3[0];
Console.WriteLine(ip);
Console.ReadLine();
}
$.get('/get-html',function(data){
var $html = $(data);
})
public class LanguageController : Controller
{
public ActionResult Index(string language)
{
[...]
}
}
<body>
<div data-ui-view="content"></div>
<div data-ui-view="contacts"></div>
</body>
$stateProvider
.state('find', {
url: "/find",
views: {
'content': {
templateUrl: "/content.html",
controller: 'registerController'
}
}
})
.state('contacts ', {
url: "/contacts ",
views: {
'content': {
templateUrl: "/content.html",
controller: 'contentController'
},
'contacts': {
templateUrl: "/contacts.html",
controller: 'contactsController'
}
}
});