You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Jul 15, 2021. It is now read-only.
Copy file name to clipboardExpand all lines: server/models/note.js
+7-7Lines changed: 7 additions & 7 deletions
Original file line number
Diff line number
Diff line change
@@ -2,12 +2,12 @@ var _ = require('lodash');
2
2
varCategory=require('./category')
3
3
varUser=require('./user')
4
4
varnotes=[
5
-
{"id":1,"userId": 13,"categoryId": 8,"link" :"https://www.youtube.com/watch?feature=player_detailpage&v=ZhfUv0spHCY#t=1870","description": "NgModel Best Practice","content" : "Always use dot syntax when using NgModel! Treat Scope as read-only in templates & write-only in controllers. The purpose of the scope is to refer to the model, not be the model. The model is your javascript objects. When doing bidirectional binding with ngModel make sure you don't bind directly to the scope properties. This will cause unexpected behavior in the child scopes.","title" : "NgModel BP","icon" : "basic info"},
6
-
{"id":2,"userId": 2,"categoryId": 3,"link" : "https://docs.angularjs.org/api/ng#directive","description" : "Markers on a **DOM element** that tell AngularJS's HTML compiler `$compile` to attach a specified behavior to that DOM element.","title" : "Directives","icon" : "code","content": "Markers on a **DOM element**"},
7
-
{"id":3,"userId": 1,"categoryId": 6,"link" : "","description" : "Clarify the confusion between Service the term and `service` the angular method and to explain the 5 different Service recipes in Angular.","title" : "Service Service? Really Angular?","content": "There are 5 Recipes used to create a Service. One of those *was* unfortunately named, Service. So yes, amongst its fellow peers such as Provider Service and Factory Service, there is in fact a Service Service.","icon" : "question"},
{"id":5,"userId": 4,"categoryId": 6,"link" : "","description" : "Define Service","title" : "What is a Service","content": "Service: Angular services are objects that are wired together using dependency injection (DI). You can use services to organize and share code across your app.","icon" : "question"},
10
-
{"id":6,"userId": 5,"categoryId": 6,"description" : "Steps for Creating a Service","title" : "How do you create a Service?","content": "You can register a service to our Angular module `app` with a one of the following 5 recipes: \\n - **factory** \\n - **provider** \\n - **service** \\n - **value** \\n - **constant** ","icon" : "question"}
5
+
{"id":1,"userId": 13,"categoryId": 8,"description": "NgModel Best Practice","content" : "Always use dot syntax when using NgModel! Treat Scope as read-only in templates & write-only in controllers. The purpose of the scope is to refer to the model, not be the model. The model is your javascript objects. When doing bidirectional binding with ngModel make sure you don't bind directly to the scope properties. This will cause unexpected behavior in the child scopes.","title" : "NgModel BP"},
6
+
{"id":2,"userId": 2,"categoryId": 3,"description" : "Markers on a **DOM element** that tell AngularJS's HTML compiler `$compile` to attach a specified behavior to that DOM element.","title" : "Directives","content": "Markers on a **DOM element**"},
7
+
{"id":3,"userId": 1,"categoryId": 6,"description" : "Clarify the confusion between Service the term and `service` the angular method and to explain the 5 different Service recipes in Angular.","title" : "Service Service? Really Angular?","content": "There are 5 Recipes used to create a Service. One of those *was* unfortunately named, Service. So yes, amongst its fellow peers such as Provider Service and Factory Service, there is in fact a Service Service."},
{"id":5,"userId": 4,"categoryId": 6,"description" : "Define Service","title" : "What is a Service","content": "Service: Angular services are objects that are wired together using dependency injection (DI). You can use services to organize and share code across your app."},
10
+
{"id":6,"userId": 5,"categoryId": 6,"description" : "Steps for Creating a Service","title" : "How do you create a Service?","content": "You can register a service to our Angular module `app` with a one of the following 5 recipes: \\n - **factory** \\n - **provider** \\n - **service** \\n - **value** \\n - **constant** "}
0 commit comments