Showing posts with label emberjs. Show all posts
Showing posts with label emberjs. Show all posts

Wednesday, 16 December 2015

EmberJS Interview Questions and Answers

EmberJS Interview Questions and Answers

Question: What is npm install?
NPM is a NodeJS package manager. It is used to install the node programs.

Question: How to install NPM on windows?
Download MSI from for 32bit|64bit system.

Question: How to update NPM on windows?
npm install npm
Download Latest MSI from for 32bit|64bit system.

Question: How to install Ember using npm?
npm install -g ember-cli

Question: How to get to know the Version of Ember?
ember -v

Question: How to get the Version of node?
node -v

Question: How to create a new project?
ember new my-newproject

Question: How to go inside new project for execute project based commands?
cd my-newproject

Question: What are different commands available in ember-cli?
ember g route about
It will give you list of commands available for Ember.

Question: How to define view.?
   templateName: 'NameOfTemplate',   

Question: How to implement IF,ELSE,NOT in ember handlebar?
{{#unless isValid}}

Question: How to add/Delete data in Array?
//In JS
App.obj = Ember.Object.create({
    "things": Ember.A(["Testing1", "Testing2"])
App.obj.things.pushObject("3"); // Add data

// HTML + Handlebars
{{#with App.obj}}
    {{#each things}}
  • {{this}}
  • {{/each}}

Question: Explain the core concept of EmberJS
  1. Store: It is central repository and cache of all records available in an application. It can be accessed by controller and admin.
  2. Models: A model is a class which defines the data of properties and behavior.
  3. Records: A record is an instance of a model which contains information that is loaded from a server.
  4. Adapter: It is responsible for translating requested records into the appropriate calls t
  5. Serializer: Translating JSON data into a record object.
  6. Automatic Caching:Used for caching

Question: What is Ember-data?
Ember-Data is a library that retrieve records from a server, store them, update them in the browser and save them back to the Server.

Question: What is Application Template?
Application Template have header, footer and contents which display on page. there can be many Template in one application.

Question: What is ember.mixin class?
Ember.mixin class can create objects, whose functions and properties can be shared among other instances and classes.

Tuesday, 15 December 2015

Basic Ember js Interview Questions and Answers

Basic Ember js Interview Questions and Answers

Question: What is EmberJS?
It is javasScript framework based on Model-view-controller(MVC) and written in javascript. It allows developers to create scalable single-page web applications by incorporating common idioms.
In this, Route is used as model, template as view and controller manipulates the data in the model.

Question: What is old name of EmberJS?
SproutCore MVC framework

Question: In which language, EmberJS is written?

Question: When First EmberJS was released?
December 08, 2011

Question: When latest EmberJS was released?
November 16, 2015

Question: What is latest version of EmberJS?

Question: Who created EmberJS?
Yehuda Katz

Question: Is it opensource?
Yes, It is free to use.

Question: What is offical website of EmberJS?

Question: What are basic models of EmberJS?
  1. Routes: State of application is represented by URL and each URL has a corresponding route object that.
  2. Models: Use to load data from Server.
  3. Templates: This is html of layout.
  4. Components: It is custom tag.
  5. Services: Services are just singleton objects to hold long-lived data such as user sessions

Question: Why I use EmberJS?
  1. Open source JavaScript framework
  2. Flexible framework that embraces the concept of fast web page
  3. It has smaller size as compare to other library
  4. Data binding Support

Question: What are the Features of EmberJS?
  1. Creating reusable modules
  2. Handlebars Templates
  3. Automatice determines the route and controller during declaration of the route resources
  4. Used routes
  5. Extensive view type support.
  6. Easy to configure

Question: List out main components of Ember.js?
  1. Models
  2. The Router
  3. Controllers
  5. Components
  6. Templates
  7. Helpers

Question: What are different template components in Ember.js?
  1. Partial
  2. View
  3. Render
  4. Yield
  5. Outlet

Question: What controller does in Ember.js?
Decorate the model returned by the route.
It can listen to actions performed by users.

Question: Explain what is Ember-data?
It is a library that retrieve records from a server, store, update in the browser and save them back to the server.

Question: How you can define a new ember class?
use extend () method.

Question: What is Enumerables in Ember.js ?
enumerable is any object that contains a number of child objects, and enables you to work with those children using the Ember.

Question: Explain Application Template ?
Application Template is a default template that is used when your application starts.

Question: How you can create instances in Ember.js?
use create() method.

Question: What is Ember.Namespace.Class ?
It is used to define an object which contains other objects and data.

Question: Explain the role of adapter? Adapter queries the back end, each adapter is made up of particular back end.