P
P
Partizanin2018-02-16 01:10:16
Angular
Partizanin, 2018-02-16 01:10:16

How to import Angular 1.x into TypeScript?

Tell me how to make friends with the first Angular typescript, when I try to import it writes that it cannot do this, compilation also fails.

import * as angular from '@types/angularjs';


let app = angular.module("myAppTest", []);


app.controller("myController", function ($scope, $http, $q) {
    $scope.testValue = "Hello From Angular";
});

5a860498ce389322892442.png

Answer the question

In order to leave comments, you need to log in

1 answer(s)
K
Konstantin Kitmanov, 2018-02-16
@Partizanin

import * as angular from 'angularjs'Stupid question, but did you try to do as it advises ( )?

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question