Skip to content
This repository was archived by the owner on Jul 15, 2021. It is now read-only.

Commit 1a640f1

Browse files
committed
Fixed a few bugs preventing node from starting, mostly code formatting
1 parent 06adeb3 commit 1a640f1

File tree

1 file changed

+7
-7
lines changed

1 file changed

+7
-7
lines changed

app/server/modules/routes/note.js

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
11
var notes = [
2-
{"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"}
3-
{"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**"}
4-
{"id":3 ,"UserId": 7, "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"}
5-
{"id":4 ,"UserId": 7, "CategoryId": 6, "link" : "", "description" : "QUESTIONABLE DESCRIPTION GOES HERE", "title" : "TEST TEST TEST", "content": "QUESTIONABLE CONTENT GOES HERE", "icon" : "question"}
6-
{"id":5 ,"UserId": 7, "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"}
7-
{"id":6 ,"UserId": 7, "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"});
2+
{"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"},
3+
{"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**"},
4+
{"id":3 ,"UserId": 7, "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"},
5+
{"id":4 ,"UserId": 7, "CategoryId": 6, "link" : "", "description" : "QUESTIONABLE DESCRIPTION GOES HERE", "title" : "TEST TEST TEST", "content": "QUESTIONABLE CONTENT GOES HERE", "icon" : "question"},
6+
{"id":5 ,"UserId": 7, "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"},
7+
{"id":6 ,"UserId": 7, "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"}
88
]
99

1010
var lastId = 6;
@@ -17,7 +17,7 @@ module.exports = function(app) {
1717
app.post('/notes', function(req, res) {
1818
var newNote = {id: lastId+=1}; //, UserId: null, CategoryId: req.param('CategoryId'), link: req.param('link'), title: req.param('title'), content: req.param('content'), description: req.param('description'), icon: req.param('icon')};
1919

20-
_.assign(newNote, req.param('note')
20+
_.assign(newNote, req.param('note'));
2121
notes.push(newNote);
2222
res.json(newNote);
2323
});

0 commit comments

Comments
 (0)