0

there is some angularjs modules which is not available yet for Angular 2 like iranian special calendar: https://amirkabirdataminers.github.io/ADM-dateTimePicker/

i was simply including its files like this :

<!doctype html>
<html ng-app="myApp">
    <head>
        <link rel="stylesheet" href="css/ADM-dateTimePicker.css" />
        <script src="js/angular.min.js"></script>
        <script src="js/ADM-dateTimePicker.min.js"></script>
        ...
    </head>
    <body>
        ...
    </body>
</html>

then injecting it:

var app = angular.module('myApp', ['ADM-dateTimePicker']);

and finally using it like:

<adm-dtp ng-model='date'></adm-dtp>

Question: how can i code abow inside my angular 2 project (using typescript) ?

2 Answers 2

0

Angular 2's architecture is completely different from Angular 1. Your code as such could not be programmed in Angular 2.

Try using angular start up code from angular.io site to get started. That will nice starting point to dive into angular 2.

Sign up to request clarification or add additional context in comments.

Comments

0

seems finally someone done it !

https://fingerpich.github.io/jalali-angular-datepicker/

a very awesome and mature component for managing Jalali Date in angular 2 applications.

no need for old angularjs library anymore..

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.