Home > Database > Mysql Tutorial > body text

Example introduction to mongoDB multiple array query

零下一度
Release: 2017-07-03 16:35:30
Original
1279 people have browsed it

This article mainly introduces mongoDB Multiple arrayquery(AngularJSbinding display nodejs), friends who need it can refer to it Next

Core code:

js code

var Lesson = Schema({ 
  lessonName: String, 
  intr: String, 
  creTime: Date, 
  sort: String, //分类 
  imgUrl: String, //封面地址 
  price: Number, 
  teacher: String,//教师 
  subTitle:[{ 
    lNo: Number, 
    subLName: String, 
    src: String, 
    filtered: {type: Boolean, default: false} 
    }] 
});
Copy after login

My HTML code

<ul class="menu fl"> 
  <li ng-repeat="title in lessonInfo.subTitle" ng-hide="{{!title.filtered}}"><a ng-href="showVideo?lessonName={{lessonInfo.lessonName}}&lessonNo={{title.lNo}}&lesId={{lesId}}&subLName={{title.subLName}}" rel="external nofollow" >课时{{title.lNo}}:{{title.subLName}}</a> </li> 
</ul>
Copy after login

lessonInfo receives the data array passed from the background for AngularJS

The above is the detailed content of Example introduction to mongoDB multiple array query. For more information, please follow other related articles on the PHP Chinese website!

Related labels:
source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template