Ad

Thursday, January 28, 2016

Codecademy Tutorials AngularJS Your First App Part 3 Workflow



Codecademy AngularJS tutorial solution Part 3 Workflow .1

Adding a new product to $scope

$scope helps the controller passes data to the view.  We are storing an object of key value pairs into the $scope.product variable. Single word keys like name and price don't need quotation marks, but regardless of the length and construct of the string, quotes are needed when storing values hence the book name is surrounded by quotes. However, we don't need quotes when storing numbers, hence 19 doesn't have quotes around.

Codecademy AngularJS tutorial solution Part 3 Workflow .2 .3

Displaying book title and price

If we just write product.name nothing will happen. HTML will literally display things exactly how it is. Because when the words are surrounded by double curly braces {{ }} AngularJS is smart enough to know to take a look. Rather than display as it is, it will traverse upward in the HTML code to see where it should be looking for useful data. It found that somewhere upward, it is told to look at the MainController, so it checks if there's a product property or variable stored in the $scope object. Found! Then it checks if there's .name and .price property. Found! AngularJS is able to successfully display the data. If we change the data now to {name : "My book", price: 25}. We no longer have to change HTML code. It was a one time setup. This time when running the code, AngularJS will again look for $scope.product.name and $scope.product.price but will find different values to display. 


Best richest startups unicorns of the world by Wall Street Journal the Unicorn startups club

Looking for the best of the best "startups" or valuation giants in the world? The best Y Combinator companies, 500 Startups like Airbnb, Uber and Palantir? Check out Wall Street Journal's data infographics, visualization "The Billion Dollar Club" aka the startup "Unicorn Club".

http://graphics.wsj.com/billion-dollar-club/

Some of these 146 companies are familiar like Pinterest, Lyft and Facebook. Some are unicorns with a foreign passport : Xiaomi, Kuaidi Dache (Chinese Uber). Some are straight out unheard of such as CureVac founded in Tubingen Germany making vaccines.

One thing for sure, these are no longer startups though they all have humble origins. They are shiny unicorns of massive valuations i.e. potentials of generating revenue. Some already do.

Silicon Valley Startup & Technology News January 2016 Parse Women Who Code Airbnb IPO

Data as a Service Facebook Parse Shutting Down : just a few hours ago, Parse Blog announced the shutdown. Parse is now officially in "sunset period" until January 28 next year. It released a new database migration tool and an open source server code Parse Server (available on Github), which will allow developers to run Parse like structure on Node.js server. The current parse server supports many iOS apps. It's a surprising announcement because unlike other startups, Parse is backed by the giant Facebook doing really well. What does this say about the state of startups in Silicon Valley?  (Parse Moving On, source parse blog)
Women Who Code rings NYSE Bell : non-profit organization that promotes women engineers was invited by the New York Stock Exchange (NYSE) to ring the Jan 20 Opening Bell.
Airbnb IPO? There are rumors on smaller stock investing websites pointing Airbnb out as the best candidates for 2016 IPO. We became familiar with Apple product rumors to be partly true. They may be true leaks, marketing stunts, or just testing the water. The ending almost always has a twist. Airbnb raised money in December 2015, but has not admitted to intention of 2016 IPO. Other notable incumbents include Uber, Palantir, and Xiaomi, all extremely large private Unicorn "startup" clubs.

How to take a screenshot on Chromebook? I love my Chromebook tutorials

Take a screenshot on Chromebook
support.google.com/chromebook/answer/183101
  1. Whole page: Press Ctrl + window switcher key 
    .
  2. Part of a page: Press Crtl + Shift + window switcher key 
    .

I love my Chromebook. It's cheap, fast and great for browsing, researching on the internet. It's unstoppable... except when I travel to far away countries. Then it's ... just pretty. 

React UI, UI UX, Reactstrap React Bootstrap

React UI MATERIAL  Install yarn add @material-ui/icons Reactstrap FORMS. Controlled Forms. Uncontrolled Forms.  Columns, grid