Most of the blogs are related to ruby and rails developer problems.
Angular 2 basic terminologies
Get link
Facebook
X
Pinterest
Email
Other Apps
-
Transpiler :
A source-to-source compiler, transcompiler or transpiler
is a type of compiler that takes the source code of a program written
in one programming language as its input and produces the equivalent
source code in another programming language.
Decorator :
Decorators are a proposed standard
for ECMAScript 2016 by Yehuda Katz, to annotate and modify classes and
properties at design time. This sounds pretty much like what annotations
do right? Well… sort of. Let’s take a look at what a decorator looks
like:
// A simple decorator@decoratorExpressionclassMyClass{}
Wait. This looks exactly like an AtScript annotation! That’s right.
But it isn’t. From a consumer perspective, a decorator indeed looks like
the thing that we know as “AtScript Annotation”. There is a significant
difference though. We are in charge of what our decorator does to our code. Taking the code above, a corresponding decorator implementation for @decoratorExpression could look like this:
functiondecoratorExpression(target){// Add a property on targettarget.annotated=true;}
Right. A decorator is just a function that gives you access to the target
that needs to be decorated. Get the idea? Instead of having a
transpiler that decides where your annotations go, we are in charge of
defining what a specific decoration/annotation does.
This, of course, also enables us to implement a decorator that adds
metadata to our code the same way AtScript annotations do (I keep
referring to “AtScript annotations” because what they do, is really an
AtScript specific thing). Or in other words: with decorators, we can
build annotations. ===================================================
Some basic files and terminologies which are used in angular 2 application : package.json lists packages the QuickStart app depends on and
defines some useful scripts.
tsconfig.json is the TypeScript compiler configuration file.
When you complete the free trial form you will get a screen like this: click whatever the linux version you do have then it will install the .run file. Linux– In the folder where you downloaded the Linux package, run the commands below for your platform. Then, follow the wizard instructions. 64-bit Linux Systems sudo chmod +x WowzaStreamingEngine-4.4.0-linux-x64-installer.run sudo ./WowzaStreamingEngine-4.4.0-linux-x64-installer.run 32-bit Linux Systems sudo chmod +x WowzaStreamingEngine-4.4.0-linux-installer.run sudo ./WowzaStreamingEngine-4.4.0-linux-installer.run If you acquired a new license key, you'll find it in the email that you received from Wowza Sales. To create a user name and password for an Administrator account. You'll use this account to sign in to the browser-based Wowza Streaming Engine Manager. The user name and password values are case-sensitive. Linux – /usr/local/WowzaStreamingEngine-4.4.0/ (as the root user) Starting and Stopping ...
In highcharts may be some time you need subcategories of a category or more deep nested categories for that you need to use a js file called grouped-categories.js it is a plugin provided by highcharts for grouped categories. this plugin can be downloaded from https://github.com/blacklabel/grouped_categories/ after download please refer to the home page for examples http://www.highcharts.com/plugin-registry/single/11/Grouped-Categories but even though I followed there documentation but I haven't found it easy for me to implement it in column range chart <div id="container" style="width: 100%; height: 100%;"></div> <script src =''> </script> var chart = new Highcharts.Chart({ chart: { renderTo: "container", ...
To Integrate google maps in rails application without gem 1.) Go to the google maps https://developers.google.com/maps/web/ 2.) Click Get a key 3.) Go to the page where you want to show the google maps and add this tag <script src="https://maps.googleapis.com/maps/api/js?v=3&key=' YOURAPIKEY '®ion=US" type="text/javascript"></script> 4.) Create a div for map <div id="map-container" style='width: 360px; height: 400px;'> <div id="map-canvas"></div> </div> 5.) Now what you need is latitude and longitude for the marker to show for that in rails you need to use a gem " Gecoder " ( https://github.com/alexreisner/geocoder ) 6.) In your Model here is School geocoded_by :address after_validation :geocode attr_accessor :address, :latitu...
Comments
Post a Comment