Giter VIP home page Giter VIP logo

angularunit2's Introduction

Unit-2 Questions

  • __

A New Structure Questions

  • What are possible issues with this new file structure?

    • You need to make sure that your paths to your accessed files are updated to insure that you have access to the dependencies you are using.
  • What are the differences between serving files from an http server and from the file system? It seemed to work fine with just open index.html in the browser...

    • When you work just with the file system, your app cannot access Angular templates(?). Serving files from an http server more authentically replicates what will happen when you deploy your app, allowing you to do QA testing and debugging more effectively(?)

Routing Questions

  • Why does Angular put a # in the route path? * For linking to pages, we’ll use the #. We don’t want the browser to think we are actually travelling to about.html or contact.html.

  • Why isn't ngRoute part of Angular core? Name at least 2 other Angular modules we could use.

    • With the built-in AngularJS router, ngRoute, only one view (ng-view) is allowed per page. This limitation causes people to use includes (ng-include) or other workarounds to create a layout or master page for their application.
  • Compare and contrast client-side routing with server-side routing.

  • Aside from route definitions, what else can go in a .config()?

    • you do have access to are any providers for services you've made, only providers can be injected (with the exception of the services in the AUTO module--$provide and $injector).
  • What is $rootScope?

  • What is the $routeChangeSuccess event?

angularunit2's People

Contributors

g33tar avatar

Watchers

James Cloos avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.