sf-wdi-labs / tunely-angular Goto Github PK
View Code? Open in Web Editor NEW[angular 1, mean, node, express, mongodb]
[angular 1, mean, node, express, mongodb]
Seeing problems pop up when scripts/stylesheets are loaded from a relative path, e.g. /example
(/example/vendor/scripts/jQuery.js
)
"Rememeber"
The shorthand
{templateUrl: '/templates/albums'}
is not as clear as the longhand
{templateUrl: '/templates/albums.html'}
and can lead to infinite-recursion problems when running alternate servers (i.e. budo).
Saw a couple examples where students mistakenly pass a config object with a data
property to the shorthand:
$http.put("/foo", { data: {name: "foo", artistName: "bar"}})
Instead of the actual data (the album):
$http.put("/foo", {name: "foo", artistName: "bar"})
(or the recommended longhand):
$http({url: "/foo", method: "put", data: {name: "foo", artistName: "bar"}} )
data-ng-app
should be come ng-app
now.
All of the readmes for the original tunely are still populating the docs
folder. To get to the tunely-angular documentation, you ned to go one directory deeper to the angular folder.
Lots of confusing bugs emerge due to the catchall/wildcard/splat route serving HTML. The most common example is /wrong/path/to/some.js
raising "SyntaxError: unexpected token <
" in the client.
Recommendation:
/albums
, /albums/:id
, /albums/:id/songs
, etc).Change in sprint3.md and solutions
Pass in album
object instead of id
for easy searching:
var index = vm.albums.indexOf(album);
vm.albums.splice(index,1)
tunely:
<script src="scripts/controllers/AlbumsIndexController.js"></script>
styleguide: https://github.com/SF-WDI-LABS/angular_style_guide#filenames-identify-component-separated-by-
The above should be:
<script src="scripts/controllers/AlbumsIndex.controller.js"></script>
Not sure about the caps
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.